From 4429463dff5c99e5473650debeff430658fac38d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 4 Apr 2013 20:58:43 +0400 Subject: [PATCH] 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 --- js/FeedTree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/FeedTree.js b/js/FeedTree.js index 620efdbf6..bb50d6fbb 100644 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -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)); } } }