Skip to content

Commit

Permalink
BUGFIX Checking for node existence in get_text() for jquery.jstree.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Oct 4, 2011
1 parent 4b1b7d4 commit 135cb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thirdparty/jstree/jquery.jstree.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 135cb1c

Please sign in to comment.