From 6a0906d1e6b3cae5fbf01b1e51acbfa8c03c72de Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 1 Sep 2011 16:13:08 +0400 Subject: [PATCH] feedtree, check for _itemsByIdentity being filled in getNextUnreadFeed --- FeedTree.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FeedTree.js b/FeedTree.js index 3200e590..ca100254 100644 --- a/FeedTree.js +++ b/FeedTree.js @@ -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; -- 2.39.5