mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Checking for node existence in get_text() for jquery.jstree.js
This commit is contained in:
parent
b5d2e10d41
commit
a00ccead8f
2
thirdparty/jstree/jquery.jstree.js
vendored
2
thirdparty/jstree/jquery.jstree.js
vendored
@ -806,7 +806,7 @@
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
|
obj = obj.contents().filter(function() { return this.nodeType == 3; })[0];
|
||||||
return obj.nodeValue;
|
return obj ? obj.nodeValue : '';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
set_text : function (obj, val) {
|
set_text : function (obj, val) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user