mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 13:47:59 +01:00
Fix JavaScript completion.
This commit is contained in:
@@ -273,7 +273,7 @@ var JavaScript = Module("javascript", {
|
|||||||
|
|
||||||
// Don't eval any function calls unless the user presses tab.
|
// Don't eval any function calls unless the user presses tab.
|
||||||
_checkFunction: function (start, end, key) {
|
_checkFunction: function (start, end, key) {
|
||||||
let res = this._function(idx => (idx >= start && idx < end));
|
let res = this._functions.some(idx => (idx >= start && idx < end));
|
||||||
if (!res || this.context.tabPressed || key in this.cache.evalled)
|
if (!res || this.context.tabPressed || key in this.cache.evalled)
|
||||||
return false;
|
return false;
|
||||||
this.context.waitingForTab = true;
|
this.context.waitingForTab = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user