mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 22:14:12 +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];
|
||||
|
||||
// Need to trigger setter
|
||||
if (extraInfo && "values" in extraInfo)
|
||||
if (extraInfo && "values" in extraInfo && !extraInfo.__lookupGetter__("values")) {
|
||||
this.values = extraInfo.values;
|
||||
delete extraInfo.values;
|
||||
delete extraInfo.values;
|
||||
}
|
||||
|
||||
if (extraInfo)
|
||||
update(this, extraInfo);
|
||||
|
||||
Reference in New Issue
Block a user