diff options
author | Valerio Virgillito | 2012-02-16 11:39:42 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-16 11:39:42 -0800 |
commit | eaee73ccaf271f5c82fdf67b35c71510f308fb6e (patch) | |
tree | 798eb17a926cd8fd16bd025ecd392d3e2f63226e /js/components/treeview/tree-node.js | |
parent | b12b167116b757e1a945c05f45991d0ed385aed3 (diff) | |
parent | 71619045b692015b0889a4f5c381c1dee9c056cd (diff) | |
download | ninja-eaee73ccaf271f5c82fdf67b35c71510f308fb6e.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Diffstat (limited to 'js/components/treeview/tree-node.js')
-rw-r--r-- | js/components/treeview/tree-node.js | 2 |
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); |