mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-01 23:05:48 +01:00
Flush literals from cache on :rehash.
This commit is contained in:
@@ -972,8 +972,16 @@ Class.prototype = {
|
||||
util.rehashing && !isinstance(Cu.getGlobalForObject(callback), ["BackstagePass"]))
|
||||
return;
|
||||
this.timeouts.splice(this.timeouts.indexOf(timer), 1);
|
||||
util.trapErrors(callback, this);
|
||||
try {
|
||||
callback.call(this);
|
||||
}
|
||||
catch (e) {
|
||||
util.dump("Error invoking timer callback registered at " +
|
||||
[frame.filename, frame.lineNumber, ""].join(":"));
|
||||
Cu.reportError(e);
|
||||
}
|
||||
};
|
||||
let frame = Cs.caller;
|
||||
let timer = services.Timer(timeout_notify, timeout || 0, services.Timer.TYPE_ONE_SHOT);
|
||||
this.timeouts.push(timer);
|
||||
return timer;
|
||||
|
||||
Reference in New Issue
Block a user