1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 11:17:58 +01: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

@@ -1033,15 +1033,17 @@ var Events = Module("events", {
}, {
argCount: "?",
bang: true,
completer: function (context) completion.macro(context),
completer: function (context) { completion.macro(context); },
literal: 0
});
commands.add(["mac[ros]"],
"List all macros",
function (args) { completion.listCompleter("macro", args[0]); }, {
function (args) {
completion.listCompleter("macro", args[0]);
}, {
argCount: "?",
completer: function (context) completion.macro(context)
completer: function (context) { completion.macro(context); }
});
},
completion: function initCompletion() {
@@ -1168,7 +1170,10 @@ var Events = Module("events", {
});
},
has: function (key) this.pass.has(key) || hasOwnProperty(this.commandHive.stack.mappings, key),
has: function (key) {
return this.pass.has(key) ||
hasOwnProperty(this.commandHive.stack.mappings, key);
},
get pass() { this.flush(); return this.pass; },