mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 18:14:13 +01:00
Replace expression closures (function declarations).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -1095,7 +1095,9 @@ var Completion = Module("completion", {
|
||||
contains(item.title, tok)));
|
||||
|
||||
let re = RegExp(tokens.filter(util.identity).map(util.regexp.escape).join("|"), "g");
|
||||
function highlight(item, text, i) process[i].call(this, item, template.highlightRegexp(text, re));
|
||||
function highlight(item, text, i) {
|
||||
return process[i].call(this, item, template.highlightRegexp(text, re));
|
||||
}
|
||||
let process = context.process;
|
||||
context.process = [
|
||||
function process_0(item, text) highlight.call(this, item, item.text, 0),
|
||||
|
||||
Reference in New Issue
Block a user