Open amillward opened 9 years ago
From json.apply:
for (var j = 0; j < c.p.length; j++) { var p = c.p[j]; parent = elem; parentKey = key; elem = elem[key]; key = p; if (parent == null) throw new Error('Path invalid'); }
If parent is null, this code will break on elem = elem[key];. It should be:
elem = elem[key];
for (var j = 0; j < c.p.length; j++) { var p = c.p[j]; parent = elem; if (parent == null) throw new Error('Path invalid'); parentKey = key; elem = elem[key]; key = p; }
From json.apply:
If parent is null, this code will break on
elem = elem[key];
. It should be: