From e79b401e97c15b6a9a492e9e50ed0d791a6da1b7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 9 Jun 2014 13:23:27 +0400 Subject: [PATCH] getPreviousFeed: wrap to last feed to be consistent with getNextFeed --- js/FeedTree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/FeedTree.js b/js/FeedTree.js index e35417da..4ae82d8d 100644 --- a/js/FeedTree.js +++ b/js/FeedTree.js @@ -539,7 +539,7 @@ dojo.declare("fox.FeedTree", dijit.Tree, { } items = this.model.store._arrayOfAllItems; - var item = items[0]; + var item = items[0] == treeItem ? items[items.length-1] : items[0]; for (var i = 0; i < items.length; i++) { if (items[i] == treeItem) { -- 2.39.5