1
0
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:
Kris Maglione
2012-01-12 03:57:52 -05:00
parent 5ad029e092
commit 31e1ceea24

View File

@@ -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,