mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-28 11:32:26 +01:00
More less Minefield explodeyness.
This commit is contained in:
@@ -81,6 +81,23 @@ var Binding = Class("Binding", {
|
||||
return res;
|
||||
})
|
||||
});
|
||||
for (let [k, v] in Iterator(XPCOMShim([Ci.nsIDOMElement]))) {
|
||||
let key = k;
|
||||
let prop = { configurable: true, enumerable: false };
|
||||
|
||||
if (callable(v))
|
||||
update(prop, {
|
||||
value: function () this.node[key].apply(this.node, arguments),
|
||||
writable: true
|
||||
});
|
||||
else
|
||||
update(prop, {
|
||||
get: function () this.node[k],
|
||||
set: function (val) this.node[k] = val
|
||||
});
|
||||
|
||||
Object.defineProperty(Binding.prototype, key, prop);
|
||||
}
|
||||
|
||||
var Template = Module("Template", {
|
||||
add: function add(a, b) a + b,
|
||||
|
||||
Reference in New Issue
Block a user