1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-01 02:13:34 +02:00

Replace expression closures (command/option/mapping definitions).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-07-23 01:15:41 +10:00
parent 85eede1ee2
commit 779752d776
33 changed files with 518 additions and 339 deletions

View File

@@ -242,10 +242,11 @@ const Config = Module("config", ConfigBase, {
let arg = args.literalArg;
dactyl.assert(arg in Config.displayPanes, _("error.invalidArgument", arg));
config.closeDisplayPane(Config.displayPanes[arg]);
},
{
}, {
argCount: "1",
completer: function (context) completion.displayPane(context),
completer: function (context) {
completion.displayPane(context);
},
literal: 0
});
@@ -257,10 +258,11 @@ const Config = Module("config", ConfigBase, {
dactyl.assert(arg in Config.displayPanes, _("error.invalidArgument", arg));
// TODO: focus when we have better key handling of these extended modes
config.openDisplayPane(Config.displayPanes[arg]);
},
{
}, {
argCount: "1",
completer: function (context) completion.displayPane(context),
completer: function (context) {
completion.displayPane(context);
},
literal: 0
});
@@ -316,7 +318,7 @@ const Config = Module("config", ConfigBase, {
prefs.set("browser.offline", ioService.offline);
return value;
},
getter: function () !services.io.offline
getter: function () { return !services.io.offline; }
});
},
services: function initServices(dactyl, modules, window) {