feedTree: pass new copies of parent arrays while looking for category nodes to auto-expand to prevent siblings uncollapsing due to objects being passed by reference

This commit is contained in:
Andrew Dolgov 2013-04-04 20:58:43 +04:00
parent f3b2e7d41f
commit 4429463dff
1 changed files with 2 additions and 2 deletions

View File

@ -259,12 +259,12 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
if (String(root.items[i].id) == test_id) { if (String(root.items[i].id) == test_id) {
this.expandParentNodes(feed, is_cat, parents); this.expandParentNodes(feed, is_cat, parents);
} else { } else {
this.findNodeParentsAndExpandThem(feed, is_cat, root.items[i], parents); this.findNodeParentsAndExpandThem(feed, is_cat, root.items[i], parents.slice(0));
} }
} }
} else { } else {
if (String(root.id) == test_id) { if (String(root.id) == test_id) {
this.expandParentNodes(feed, is_cat, parents); this.expandParentNodes(feed, is_cat, parents.slice(0));
} }
} }
} }