Don't use deprecated catch-if.
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1228841
This commit is contained in:
parent
ac33dbccb5
commit
17526f7940
@ -218,11 +218,13 @@ var TreeStyleTabBookmarksServiceEditable = inherit(TreeStyleTabBookmarksService,
|
||||
this._doProgressivelyTimers[name] = window.setTimeout(progressiveIteration, interval);
|
||||
}
|
||||
}
|
||||
catch(e if e instanceof StopIteration) {
|
||||
aParams.onComplete();
|
||||
}
|
||||
catch(e) {
|
||||
Components.utils.reportError(e);
|
||||
if (e instanceof StopIteration) {
|
||||
aParams.onComplete();
|
||||
}
|
||||
else {
|
||||
Components.utils.reportError(e);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
this._doProgressivelyTimers[name] = null;
|
||||
|
Loading…
Reference in New Issue
Block a user