mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-19 14:15:46 +01:00
Replace expression closures (function declarations).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -1337,9 +1337,11 @@ var Options = Module("options", {
|
||||
function (args) {
|
||||
let globalVariables = dactyl._globalVariables;
|
||||
args = (args[0] || "").trim();
|
||||
function fmt(value) (typeof value == "number" ? "#" :
|
||||
typeof value == "function" ? "*" :
|
||||
" ") + value;
|
||||
function fmt(value) {
|
||||
return (typeof value == "number" ? "#" :
|
||||
typeof value == "function" ? "*" :
|
||||
" ") + value;
|
||||
}
|
||||
util.assert(!(!args || args == "g:"));
|
||||
|
||||
let matches = args.match(/^([a-z]:)?([\w]+)(?:\s*([-+.])?=\s*(.*)?)?$/);
|
||||
|
||||
Reference in New Issue
Block a user