1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 15:24:11 +01:00

Localitize deprecation warnings.

This commit is contained in:
Kris Maglione
2011-03-14 19:22:43 -04:00
parent 9c0180a8a3
commit 4cfdba9223
7 changed files with 88 additions and 38 deletions

View File

@@ -51,14 +51,8 @@ var Option = Class("Option", {
this.realNames = names;
this.description = description;
// Need to trigger setter
if (extraInfo && "values" in extraInfo && !extraInfo.__lookupGetter__("values")) {
this.values = extraInfo.values;
delete extraInfo.values;
}
if (extraInfo)
update(this, extraInfo);
this.update(extraInfo);
if (set.has(this.modules.config.defaults, this.name))
defaultValue = this.modules.config.defaults[this.name];