1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 14:25:51 +01:00

Bang on tests a bit more.

This commit is contained in:
Kris Maglione
2011-02-01 00:29:21 -05:00
parent 8854c09db9
commit dab394de78
4 changed files with 187 additions and 127 deletions

View File

@@ -1001,9 +1001,9 @@ var Timer = Class("Timer", {
this.latest = 0;
},
notify: function (timer) {
notify: function (timer, force) {
try {
if (util.rehashing || typeof util === "undefined")
if (util.rehashing || typeof util === "undefined" || !force && this.doneAt == 0)
return;
this._timer.cancel();
@@ -1051,7 +1051,7 @@ var Timer = Class("Timer", {
flush: function (force) {
if (this.doneAt == -1 || force)
this.notify();
this.notify(null, true);
}
});