Skip to content

Commit

Permalink
getPreviousFeed: wrap to last feed to be consistent with getNextFeed
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Dolgov committed Jun 9, 2014
1 parent 5d08bde commit e79b401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/FeedTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e79b401

Please sign in to comment.