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

This commit is contained in:
Ingo Schommer 2011-03-03 08:37:05 +13:00
parent b5d2e10d41
commit a00ccead8f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {