1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 03:55:56 +00:00

feedtree, check for _itemsByIdentity being filled in getNextUnreadFeed

This commit is contained in:
Andrew Dolgov
2011-09-01 16:13:08 +04:00
parent 8a9646b31c
commit 6a0906d1e6

View File

@@ -53,6 +53,9 @@ dojo.declare("fox.FeedStoreModel", dijit.tree.ForestStoreModel, {
return this.store.setValue(treeItem, key, value);
},
getNextUnreadFeed: function (feed, is_cat) {
if (!this.store._itemsByIdentity)
return null;
if (is_cat) {
treeItem = this.store._itemsByIdentity['CAT:' + feed];
items = this.store._arrayOfTopLevelItems;