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
1 changed files with 3 additions and 0 deletions

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;