mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-16 10:55:46 +01:00
Cleanup crufty apply code.
This commit is contained in:
@@ -553,7 +553,7 @@ var Contexts = Module("contexts", {
|
||||
if (callable(params))
|
||||
action = dactyl.userEval("(function action() { with (action.makeParams(this, arguments)) {" + args.literalArg + "} })");
|
||||
else
|
||||
action = dactyl.userFunc.apply(dactyl, params.concat(args.literalArg));
|
||||
action = apply(dactyl, "userFunc", params.concat(args.literalArg));
|
||||
process = param => isObject(param) && param.valueOf ? param.valueOf() : param;
|
||||
action.params = params;
|
||||
action.makeParams = makeParams;
|
||||
|
||||
Reference in New Issue
Block a user