mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-30 00:23:35 +02:00
More less Minefield explodeyness.
This commit is contained in:
@@ -81,6 +81,23 @@ var Binding = Class("Binding", {
|
|||||||
return res;
|
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", {
|
var Template = Module("Template", {
|
||||||
add: function add(a, b) a + b,
|
add: function add(a, b) a + b,
|
||||||
|
|||||||
Reference in New Issue
Block a user