1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 12:42:26 +01:00

Make autocompletion generally more reasonable

This commit is contained in:
Kris Maglione
2008-10-06 18:48:08 +00:00
parent 4860ff32fe
commit 899fa605e6
8 changed files with 97 additions and 66 deletions

View File

@@ -37,9 +37,9 @@ liberator.util = { //{{{
this.notify = function (aTimer)
{
timer.cancel();
this.doneAt = Date.now() + minInterval;
this.latest = 0;
callback(this.arg);
this.doneAt = Date.now() + minInterval;
}
this.tell = function (arg)
{
@@ -49,7 +49,7 @@ liberator.util = { //{{{
let now = Date.now();
if (this.doneAt == -1)
timer.cancel();
else if (now >= this.doneAt || now >= this.latest)
else if (now >= this.doneAt || this.latest && now >= this.latest)
return this.notify();
let timeout = minInterval;