summaryrefslogtreecommitdiff
path: root/common/modules/options.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-02-19 22:02:01 -0500
committerKris Maglione <maglione.k@gmail.com>2011-02-19 22:02:01 -0500
commitd37e8159ed9aaeff35e7929047ce71007ebb4964 (patch)
treebda2f754ba519edd4fab715b9cf2c9a003506b13 /common/modules/options.jsm
parentb648a061c830c0307f3dd27f5baeb15be477bb77 (diff)
downloadpentadactyl-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.jsm5
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);