mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 04:44:10 +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:
@@ -1418,15 +1418,17 @@ var Options = Module("options", {
|
||||
description: "Set an option",
|
||||
modifiers: {},
|
||||
extra: {
|
||||
serialize: function () [
|
||||
{
|
||||
command: this.name,
|
||||
literalArg: [opt.type == "boolean" ? (opt.value ? "" : "no") + opt.name
|
||||
: opt.name + "=" + opt.stringValue]
|
||||
}
|
||||
for (opt of modules.options)
|
||||
if (!opt.getter && !opt.isDefault && (opt.scope & Option.SCOPE_GLOBAL))
|
||||
]
|
||||
serialize: function () {
|
||||
return [
|
||||
{
|
||||
command: this.name,
|
||||
literalArg: [opt.type == "boolean" ? (opt.value ? "" : "no") + opt.name
|
||||
: opt.name + "=" + opt.stringValue]
|
||||
}
|
||||
for (opt of modules.options)
|
||||
if (!opt.getter && !opt.isDefault && (opt.scope & Option.SCOPE_GLOBAL))
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
].forEach(function (params) {
|
||||
|
||||
Reference in New Issue
Block a user