1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 15:14:11 +01:00

Define option getters to return Optionhints.jsvalues rather than #value.

This commit is contained in:
Kris Maglione
2010-09-24 16:11:17 -04:00
parent 3645cd27d0
commit 5bf3784ab2
5 changed files with 11 additions and 12 deletions

View File

@@ -641,8 +641,8 @@ const Options = Module("options", {
memoize(this.needInit, this.needInit.length, closure);
// quickly access options with options["wildmode"]:
this.__defineGetter__(name, function () this._optionMap[name].value);
this.__defineSetter__(name, function (value) { this._optionMap[name].value = value; });
this.__defineGetter__(name, function () this._optionMap[name].values);
this.__defineSetter__(name, function (value) { this._optionMap[name].values = value; });
},
/**