This commit is contained in:
2022-01-13 17:03:21 +03:00
parent 189e048f8b
commit fd6ac75758
+2 -2
View File
@@ -258,7 +258,7 @@ __PluginManager__.register('support', function(module, exports, require, global)
}); });
return result; return result;
} }
function getInstanceData(node, key, def = null) { function getNodeData(node, key, def = null) {
if(!Array.isArray(key)) { if(!Array.isArray(key)) {
key = [key]; key = [key];
} }
@@ -270,7 +270,7 @@ __PluginManager__.register('support', function(module, exports, require, global)
if(!Array.isArray(branch)) { if(!Array.isArray(branch)) {
branch = [branch]; branch = [branch];
} }
if(!isObject(object)) return null; if(!isObject(object)) return def;
var i = 0, obj = {}, result = true; var i = 0, obj = {}, result = true;
obj[i] = object; obj[i] = object;
branch.forEach(function (key) { branch.forEach(function (key) {