Open drewnoakes opened 10 years ago
In the following code:
dockspawn.DockGraphSerializer.prototype._buildGraphInfo = function(node) { var nodeState = {}; node.container.saveState(nodeState); var childrenInfo = []; var self = this; node.childNodes.forEach(function(childNode) { // BANG!!! childrenInfo.push(self._buildGraphInfo(childNode)); }); var nodeInfo = {}; nodeInfo.containerType = node.container.containerType; nodeInfo.state = nodeState; nodeInfo.children = childrenInfo; return nodeInfo; };
Where is node.childNodes defined? Looking through the source code, there's no other reference to that property.
node.childNodes
In the following code:
Where is
node.childNodes
defined? Looking through the source code, there's no other reference to that property.