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:
parent
f3b2e7d41f
commit
4429463dff
|
@ -259,12 +259,12 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
|||
if (String(root.items[i].id) == test_id) {
|
||||
this.expandParentNodes(feed, is_cat, parents);
|
||||
} else {
|
||||
this.findNodeParentsAndExpandThem(feed, is_cat, root.items[i], parents);
|
||||
this.findNodeParentsAndExpandThem(feed, is_cat, root.items[i], parents.slice(0));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (String(root.id) == test_id) {
|
||||
this.expandParentNodes(feed, is_cat, parents);
|
||||
this.expandParentNodes(feed, is_cat, parents.slice(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue