summaryrefslogtreecommitdiff
path: root/common/modules/options.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-03-14 19:22:43 -0400
committerKris Maglione <maglione.k@gmail.com>2011-03-14 19:22:43 -0400
commit4cfdba9223fe75ac6eb259d403c6f21a36e60679 (patch)
tree815c9ea2d7936648efae4f967be38e6cbc8080a1 /common/modules/options.jsm
parent9c0180a8a341f3be38594909422683705a3de55e (diff)
downloadpentadactyl-4cfdba9223fe75ac6eb259d403c6f21a36e60679.tar.gz
Localitize deprecation warnings.
Diffstat (limited to 'common/modules/options.jsm')
-rw-r--r--common/modules/options.jsm8
1 files changed, 1 insertions, 7 deletions
diff --git a/common/modules/options.jsm b/common/modules/options.jsm
index dfa16cb5..cc9303b7 100644
--- a/common/modules/options.jsm
+++ b/common/modules/options.jsm
@@ -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];