mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-20 20:55:43 +02:00
Don't do automagic localization for option values provided by getters.
This commit is contained in:
1 parent
d336764b47
commit
7e2e11f09b
1 file changed
+3
-2
@@ -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