Permalink
Browse files

BUGFIX Checking for node existence in get_text() for jquery.jstree.js

  • Loading branch information...
1 parent b5d2e10 commit a00ccead8f2b21f6ff3d4329a810d0a987b1e3c0 @chillu chillu committed Mar 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 thirdparty/jstree/jquery.jstree.js
@@ -806,7 +806,7 @@
}
else {
obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
- return obj.nodeValue;
+ return obj ? obj.nodeValue : '';
}
},
set_text : function (obj, val) {

0 comments on commit a00ccea

Please sign in to comment.