mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-30 01:15:47 +01:00
Replace expression closures (function expressions - named and dynamic this).
Expression closures are to be axed. See https://bugzil.la/1083458. Leaving deprecated() and literal() calls and method shorthand syntax conversions until after the ESR overlap.
This commit is contained in:
@@ -80,14 +80,15 @@ var Help = Module("Help", {
|
||||
init: function init() {
|
||||
this.initialized = false;
|
||||
|
||||
function Loop(fn)
|
||||
function (uri, path) {
|
||||
function Loop(fn) {
|
||||
return function (uri, path) {
|
||||
if (!help.initialized)
|
||||
return RedirectChannel(uri.spec, uri, 2,
|
||||
"Initializing. Please wait...");
|
||||
|
||||
return fn.apply(this, arguments);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
update(services["dactyl:"].providers, {
|
||||
"help": Loop((uri, path) => help.files[path]),
|
||||
|
||||
Reference in New Issue
Block a user