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:
@@ -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; });
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user