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:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user