]> git.wh0rd.org Git - tt-rss.git/commitdiff
feedTree: pass new copies of parent arrays while looking for category nodes to auto...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Apr 2013 16:58:43 +0000 (20:58 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Apr 2013 16:58:43 +0000 (20:58 +0400)
js/FeedTree.js

index 620efdbf674245aa1e0f001d4e3b64e98ef8d89e..bb50d6fbb5b44af08941bc8d3820056a51665b8c 100644 (file)
@@ -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));
                                        }
                                }
                        }