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