in src/main/jbake/assets/js/tree.jquery.js [1111:1135]
Node.prototype.initFromData = function(data) {
var addChildren, addNode;
addNode = (function(_this) {
return function(node_data) {
_this.setData(node_data);
if (node_data.children) {
return addChildren(node_data.children);
}
};
})(this);
addChildren = (function(_this) {
return function(children_data) {
var child, j, len, node;
for (j = 0, len = children_data.length; j < len; j++) {
child = children_data[j];
node = new _this.tree.node_class('');
node.initFromData(child);
_this.addChild(node);
}
return null;
};
})(this);
addNode(data);
return null;
};