Closes #974, Unreachable code after return statement
This commit is contained in:
parent
9b1b360a72
commit
b445283f4e
2 changed files with 11 additions and 9 deletions
|
@ -1056,11 +1056,14 @@
|
|||
<body>
|
||||
<![CDATA[
|
||||
// DEBUG: Valid nsIScrollBoxObject but methods return errors
|
||||
return;
|
||||
|
||||
var sbo = document.getAnonymousNodes(this)[0].boxObject;
|
||||
sbo.QueryInterface(Components.interfaces.nsIScrollBoxObject);
|
||||
sbo.scrollTo(0,0);
|
||||
try {
|
||||
var sbo = document.getAnonymousNodes(this)[0].boxObject;
|
||||
sbo.QueryInterface(Components.interfaces.nsIScrollBoxObject);
|
||||
sbo.scrollTo(0,0);
|
||||
}
|
||||
catch (e) {
|
||||
Zotero.logError(e);
|
||||
}
|
||||
]]>
|
||||
</body>
|
||||
</method>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue