getPreviousFeed: wrap to last feed to be consistent with getNextFeed

This commit is contained in:
Andrew Dolgov 2014-06-09 13:23:27 +04:00
parent 5d08bdeb8f
commit e79b401e97
1 changed files with 1 additions and 1 deletions

View File

@ -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) {