feedtree, check for _itemsByIdentity being filled in getNextUnreadFeed
This commit is contained in:
parent
8a9646b31c
commit
6a0906d1e6
|
@ -53,6 +53,9 @@ dojo.declare("fox.FeedStoreModel", dijit.tree.ForestStoreModel, {
|
||||||
return this.store.setValue(treeItem, key, value);
|
return this.store.setValue(treeItem, key, value);
|
||||||
},
|
},
|
||||||
getNextUnreadFeed: function (feed, is_cat) {
|
getNextUnreadFeed: function (feed, is_cat) {
|
||||||
|
if (!this.store._itemsByIdentity)
|
||||||
|
return null;
|
||||||
|
|
||||||
if (is_cat) {
|
if (is_cat) {
|
||||||
treeItem = this.store._itemsByIdentity['CAT:' + feed];
|
treeItem = this.store._itemsByIdentity['CAT:' + feed];
|
||||||
items = this.store._arrayOfTopLevelItems;
|
items = this.store._arrayOfTopLevelItems;
|
||||||
|
|
Loading…
Reference in New Issue