From b445283f4ec469d8b39de58542a5f2787008dfa4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 21 Dec 2016 07:48:39 -0500 Subject: [PATCH] Closes #974, Unreachable code after return statement --- chrome/content/zotero/bindings/itembox.xml | 13 ++++++++----- chrome/content/zotero/xpcom/data/feed.js | 7 +++---- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index cd89c7fa2d..f52184dbeb 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1056,11 +1056,14 @@ diff --git a/chrome/content/zotero/xpcom/data/feed.js b/chrome/content/zotero/xpcom/data/feed.js index 2d992517a9..77b6bbf1cd 100644 --- a/chrome/content/zotero/xpcom/data/feed.js +++ b/chrome/content/zotero/xpcom/data/feed.js @@ -44,6 +44,9 @@ Zotero.Feed = function(params = {}) { this._feedCleanupReadAfter = null; this._feedCleanupUnreadAfter = null; this._feedRefreshInterval = null; + this._feedUnreadCount = null; + this._updating = false; + this._previousURL = null; // Feeds are not editable by the user. Remove the setter this.editable = false; @@ -69,10 +72,6 @@ Zotero.Feed = function(params = {}) { return obj[prop]; } }); - this._feedUnreadCount = null; - - this._updating = false; - this._previousURL = null; } Zotero.Feed._colToProp = function(c) {