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>
|
<body>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
// DEBUG: Valid nsIScrollBoxObject but methods return errors
|
// DEBUG: Valid nsIScrollBoxObject but methods return errors
|
||||||
return;
|
try {
|
||||||
|
var sbo = document.getAnonymousNodes(this)[0].boxObject;
|
||||||
var sbo = document.getAnonymousNodes(this)[0].boxObject;
|
sbo.QueryInterface(Components.interfaces.nsIScrollBoxObject);
|
||||||
sbo.QueryInterface(Components.interfaces.nsIScrollBoxObject);
|
sbo.scrollTo(0,0);
|
||||||
sbo.scrollTo(0,0);
|
}
|
||||||
|
catch (e) {
|
||||||
|
Zotero.logError(e);
|
||||||
|
}
|
||||||
]]>
|
]]>
|
||||||
</body>
|
</body>
|
||||||
</method>
|
</method>
|
||||||
|
|
|
@ -44,6 +44,9 @@ Zotero.Feed = function(params = {}) {
|
||||||
this._feedCleanupReadAfter = null;
|
this._feedCleanupReadAfter = null;
|
||||||
this._feedCleanupUnreadAfter = null;
|
this._feedCleanupUnreadAfter = null;
|
||||||
this._feedRefreshInterval = null;
|
this._feedRefreshInterval = null;
|
||||||
|
this._feedUnreadCount = null;
|
||||||
|
this._updating = false;
|
||||||
|
this._previousURL = null;
|
||||||
|
|
||||||
// Feeds are not editable by the user. Remove the setter
|
// Feeds are not editable by the user. Remove the setter
|
||||||
this.editable = false;
|
this.editable = false;
|
||||||
|
@ -69,10 +72,6 @@ Zotero.Feed = function(params = {}) {
|
||||||
return obj[prop];
|
return obj[prop];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this._feedUnreadCount = null;
|
|
||||||
|
|
||||||
this._updating = false;
|
|
||||||
this._previousURL = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Zotero.Feed._colToProp = function(c) {
|
Zotero.Feed._colToProp = function(c) {
|
||||||
|
|
Loading…
Reference in a new issue