mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 14:04:12 +01:00
Replace expression closures (function declarations).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -242,7 +242,9 @@ var Help = Module("Help", {
|
||||
let items = modules.completion._runCompleter("help", topic, null, !!consolidated).items;
|
||||
let partialMatch = null;
|
||||
|
||||
function format(item) item.description + "#" + encodeURIComponent(item.text);
|
||||
function format(item) {
|
||||
return item.description + "#" + encodeURIComponent(item.text);
|
||||
}
|
||||
|
||||
for (let item of items) {
|
||||
if (item.text == topic)
|
||||
|
||||
Reference in New Issue
Block a user