1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-13 05:55:47 +01:00

Add :hi -link.

--HG--
extra : rebase_source : 9bc26b19eac01350323073212d12a91fd2f31189
This commit is contained in:
Kris Maglione
2010-12-29 17:44:22 -05:00
parent 44bef3c828
commit 13e22f7458
5 changed files with 101 additions and 52 deletions

View File

@@ -21,6 +21,8 @@ Sheet.liveProperty = function (name) {
let i = this.prototype.members[name];
this.prototype.__defineGetter__(name, function () this[i]);
this.prototype.__defineSetter__(name, function (val) {
if (isArray(val) && Object.freeze)
Object.freeze(val);
this[i] = val;
this.enabled = this.enabled;
});