Browse files

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

  • Loading branch information...
1 parent 4b1b7d4 commit 135cb1cc94c98ba6f079e5b9953b027915e825f9 @chillu chillu committed Mar 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 thirdparty/jstree/jquery.jstree.js
View
2 thirdparty/jstree/jquery.jstree.js
@@ -808,7 +808,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 135cb1c

Please sign in to comment.