diff --git a/common/content/abbreviations.js b/common/content/abbreviations.js index 29908475..4013be29 100644 --- a/common/content/abbreviations.js +++ b/common/content/abbreviations.js @@ -347,7 +347,7 @@ var Abbreviations = Module("abbreviations", { arguments: [abbr.lhs], literalArg: abbr.rhs, options: { - "-javascript": abbr.rhs ? null : undefined + "-javascript": callable(abbr.rhs) ? null : undefined } } for ([, abbr] in Iterator(abbreviations.user.merged)) diff --git a/common/modules/contexts.jsm b/common/modules/contexts.jsm index 3a722b36..b20616ab 100644 --- a/common/modules/contexts.jsm +++ b/common/modules/contexts.jsm @@ -546,7 +546,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).array); + action = dactyl.userFunc.apply(dactyl, params.concat(args.literalArg)); process = function (param) isObject(param) && param.valueOf ? param.valueOf() : param; action.params = params; action.makeParams = makeParams;