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