mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 04:35:48 +01:00
Don't do automagic localization for option values provided by getters.
This commit is contained in:
@@ -69,9 +69,10 @@ var Option = Class("Option", {
|
|||||||
this._op = Option.ops[this.type];
|
this._op = Option.ops[this.type];
|
||||||
|
|
||||||
// Need to trigger setter
|
// Need to trigger setter
|
||||||
if (extraInfo && "values" in extraInfo)
|
if (extraInfo && "values" in extraInfo && !extraInfo.__lookupGetter__("values")) {
|
||||||
this.values = extraInfo.values;
|
this.values = extraInfo.values;
|
||||||
delete extraInfo.values;
|
delete extraInfo.values;
|
||||||
|
}
|
||||||
|
|
||||||
if (extraInfo)
|
if (extraInfo)
|
||||||
update(this, extraInfo);
|
update(this, extraInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user