commit d7e38d960e94c9ba24fe13269b3d43653df6e0cd
parent e4bc4c028dd44ab9b45f7bbe2f9757fa76ca2466
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 26 May 2016 00:34:25 -0400
Fix error in console on feed update before pane open
Diffstat:
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js
@@ -318,13 +318,6 @@ Zotero.CollectionTreeView.prototype.selectWait = Zotero.Promise.method(function
* Called by Zotero.Notifier on any changes to collections in the data layer
*/
Zotero.CollectionTreeView.prototype.notify = Zotero.Promise.coroutine(function* (action, type, ids, extraData) {
- if (type == 'feed' && (action == 'unreadCountUpdated' || action == 'statusChanged')) {
- for (let i=0; i<ids.length; i++) {
- this._treebox.invalidateRow(this._rowMap['L' + ids[i]]);
- }
- return;
- }
-
if ((!ids || ids.length == 0) && action != 'refresh' && action != 'redraw') {
return;
}
@@ -357,6 +350,12 @@ Zotero.CollectionTreeView.prototype.notify = Zotero.Promise.coroutine(function*
}
return;
}
+ if (type == 'feed' && (action == 'unreadCountUpdated' || action == 'statusChanged')) {
+ for (let i=0; i<ids.length; i++) {
+ this._treebox.invalidateRow(this._rowMap['L' + ids[i]]);
+ }
+ return;
+ }
//
// Actions that can change the selection