1
0
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:
Kris Maglione
2011-03-07 18:10:55 -05:00
parent d336764b47
commit 7e2e11f09b

View File

@@ -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);