getPreviousFeed: wrap to last feed to be consistent with getNextFeed
This commit is contained in:
parent
5d08bdeb8f
commit
e79b401e97
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue