aboutsummaryrefslogtreecommitdiff
path: root/js/components/treeview/tree-node.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-16 11:30:33 -0800
committerJose Antonio Marquez2012-02-16 11:30:33 -0800
commit9fe5d98bf469036c856e28d71ad4160d630b4af4 (patch)
tree930a334bcda0c26ca02eaa33a1506d147e8691e1 /js/components/treeview/tree-node.js
parent89b5e793ea88ef235b54b6e1d1c379698d3e612b (diff)
parent71619045b692015b0889a4f5c381c1dee9c056cd (diff)
downloadninja-9fe5d98bf469036c856e28d71ad4160d630b4af4.tar.gz
Merge branch 'refs/heads/NinjaInternal' into Color
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);