diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-02-19 22:02:01 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-02-19 22:02:01 -0500 |
commit | d37e8159ed9aaeff35e7929047ce71007ebb4964 (patch) | |
tree | bda2f754ba519edd4fab715b9cf2c9a003506b13 /common/modules/options.jsm | |
parent | b648a061c830c0307f3dd27f5baeb15be477bb77 (diff) | |
download | pentadactyl-d37e8159ed9aaeff35e7929047ce71007ebb4964.tar.gz |
Make Teledactyl minimally functional, albeit with quite a lot of errors on the console.
Diffstat (limited to 'common/modules/options.jsm')
-rw-r--r-- | common/modules/options.jsm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/modules/options.jsm b/common/modules/options.jsm index c191a063..7c3403a5 100644 --- a/common/modules/options.jsm +++ b/common/modules/options.jsm @@ -69,7 +69,10 @@ var Option = Class("Option", { if (extraInfo) update(this, extraInfo); - if (arguments.length > 3) { + if (set.has(this.modules.config.defaults, this.name)) + defaultValue = this.modules.config.defaults[this.name]; + + if (defaultValue !== undefined) { if (this.type == "string") defaultValue = Commands.quote(defaultValue); |