mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 01:44:12 +01:00
Cleanup crufty apply code.
This commit is contained in:
@@ -36,7 +36,7 @@ var Binding = Class("Binding", {
|
||||
configurable: true,
|
||||
writeable: true,
|
||||
value: function __noSuchMethod__(meth, args) {
|
||||
return this.node[meth].apply(this.node, args);
|
||||
return apply(this.node, meth, args);
|
||||
}
|
||||
})
|
||||
}, {
|
||||
@@ -88,7 +88,7 @@ var Binding = Class("Binding", {
|
||||
Object.defineProperty(Binding.prototype, key, {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
value: function () this.node[key].apply(this.node, arguments),
|
||||
value: function () apply(this.node, key, arguments),
|
||||
writable: true
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user