aboutsummaryrefslogtreecommitdiff
path: root/js/components/treeview/tree-node.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-16 11:10:00 -0800
committerValerio Virgillito2012-02-16 11:10:00 -0800
commit9aed3035ed7b0807ec198327ddd8305596331491 (patch)
treef95b0fa1ca064dd3b8c1d6c5637a4b5f8897f985 /js/components/treeview/tree-node.js
parentd52aca45e0357b5597e13d9b74998abb75fabea5 (diff)
parent966f0adaf1d4b7f2dd5a6e31643df58bff713884 (diff)
downloadninja-9aed3035ed7b0807ec198327ddd8305596331491.tar.gz
Merge pull request #43 from ericguzman/TreeComponents
Tree components
Diffstat (limited to 'js/components/treeview/tree-node.js')
-rw-r--r--js/components/treeview/tree-node.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/components/treeview/tree-node.js b/js/components/treeview/tree-node.js
index 689fc233..d7b864b5 100644
--- a/js/components/treeview/tree-node.js
+++ b/js/components/treeview/tree-node.js
@@ -44,7 +44,9 @@ exports.TreeNode = Montage.create(Component, {
44 if(!object) { 44 if(!object) {
45 return; 45 return;
46 } 46 }
47
47 if(object[this.branchKey]) { 48 if(object[this.branchKey]) {
49 this.childNodes.length = 0;
48 object[this.branchKey].forEach(function(node) { 50 object[this.branchKey].forEach(function(node) {
49 this.childNodes.push(node); 51 this.childNodes.push(node);
50 }, this); 52 }, this);