1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 00:44:13 +01:00

Add Classeditor.jssetTimeout. Fix some broken timeouts.

This commit is contained in:
Kris Maglione
2009-11-11 19:18:04 -05:00
parent 5523b04604
commit b607764012
6 changed files with 28 additions and 32 deletions

View File

@@ -488,10 +488,10 @@ const Hints = Module("hints", {
if (timeout == 0)
// force a possible mode change, based on whether an input field has focus
events.onFocusChange();
setTimeout(function () {
this.setTimeout(function () {
if (modes.extended & modes.HINTS)
modes.reset();
hints._hintMode.action(elem, elem.href || "", hints._extendedhintCount);
this._hintMode.action(elem, elem.href || "", hints._extendedhintCount);
}, timeout);
return true;
},
@@ -507,7 +507,7 @@ const Hints = Module("hints", {
if (this._hintNumber > 0 && this._hintNumber * 10 <= this._validHints.length) {
let timeout = options["hinttimeout"];
if (timeout > 0)
this._activeTimeout = setTimeout(function () { hints._processHints(true); }, timeout);
this._activeTimeout = this.setTimeout(function () { this._processHints(true); }, timeout);
}
else // we have a unique hint
this._processHints(true);