1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-19 05:05:47 +01:00

Add 'spelllang'. Closes issue #530.

This commit is contained in:
Kris Maglione
2011-08-06 08:47:36 -04:00
parent 4958d6854f
commit d828a53b7a
5 changed files with 30 additions and 0 deletions

View File

@@ -57,6 +57,9 @@ var Option = Class("Option", {
if (Set.has(this.modules.config.defaults, this.name))
defaultValue = this.modules.config.defaults[this.name];
if (defaultValue == null && this.getter)
defaultValue = this.getter();
if (defaultValue !== undefined) {
if (this.type === "string")
defaultValue = Commands.quote(defaultValue);