mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 05:14:11 +01:00
Fix :set <no-arg>.
Args needs a working length property. Reverts change in 7ee5792.
Despite grave warnings of impending performance doom there seems to be
no penalty for using __proto__ here.
This commit is contained in:
@@ -331,8 +331,9 @@ var Command = Class("Command", {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
newArgs: function newArgs(base) {
|
newArgs: function newArgs(base) {
|
||||||
let res = Object.create(this.argsPrototype);
|
let res = [];
|
||||||
update(res, base);
|
update(res, base);
|
||||||
|
res.__proto__ = this.argsPrototype;
|
||||||
return res;
|
return res;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user