1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 10:57:58 +01:00

Fix some bugs.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-07 18:34:48 -05:00
parent a94832ef15
commit ee03cbd2ce
5 changed files with 16 additions and 17 deletions

View File

@@ -156,7 +156,10 @@ var Command = Class("Command", {
throw FailedAssertion("E477: No ! allowed");
return !dactyl.trapErrors(function exec() {
update({}, this.hive.argsExtra(args), args);
let extra = this.hive.argsExtra(args);
for (let k in properties(extra))
if (!(k in args))
Object.defineProperty(args, k, Object.getOwnPropertyDescriptor(extra, k));
if (this.always)
this.always(args, modifiers);
@@ -1339,7 +1342,7 @@ var Commands = Module("commands", {
args["-description"],
contexts.bindMacro(args, "-ex",
function makeParams(args, modifiers) ({
args: {
args: {
__proto__: args,
toString: function () this.string,
},