1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 01:35:45 +01:00

Fix some more bootstrapping update bugs.

This commit is contained in:
Kris Maglione
2011-01-17 21:40:54 -05:00
parent 41441f600c
commit 35419ad234
7 changed files with 61 additions and 32 deletions

View File

@@ -964,16 +964,22 @@ var Timer = Class("Timer", {
},
notify: function (timer) {
if (util.rehashing)
return;
this._timer.cancel();
this.latest = 0;
// minInterval is the time between the completion of the command and the next firing
this.doneAt = Date.now() + this.minInterval;
try {
this.callback(this.arg);
if (util.rehashing || typeof util === "undefined")
return;
this._timer.cancel();
this.latest = 0;
// minInterval is the time between the completion of the command and the next firing
this.doneAt = Date.now() + this.minInterval;
this.callback(this.arg);
}
catch (e) {
if (typeof util === "undefined")
dump("dactyl: " + e + "\n" + (e.stack || Error().stack));
else
util.reportError(e);
}
finally {
this.doneAt = Date.now() + this.minInterval;