From: Andrew Dolgov Date: Thu, 4 Apr 2013 16:58:43 +0000 (+0400) Subject: feedTree: pass new copies of parent arrays while looking for category nodes to auto... X-Git-Tag: 1.7.9~69 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4429463dff5c99e5473650debeff430658fac38d;p=tt-rss.git 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 --- diff --git a/js/FeedTree.js b/js/FeedTree.js index 620efdbf..bb50d6fb 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)); } } }