getPreviousFeed: wrap to last feed to be consistent with getNextFeed
This commit is contained in:
parent
5d08bdeb8f
commit
e79b401e97
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
|
||||||
}
|
}
|
||||||
|
|
||||||
items = this.model.store._arrayOfAllItems;
|
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++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
if (items[i] == treeItem) {
|
if (items[i] == treeItem) {
|
||||||
|
|
Loading…
Reference in a new issue