diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-11-25 09:52:33 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-11-25 09:52:33 -0500 |
commit | 7d939adf116e2b71c36da59473b2d4ed50af4c01 (patch) | |
tree | d4df432bfd99930fa16208a61f34c7488e761851 /common/modules/options.jsm | |
parent | 32973aea757fceb26350d6792ec1fb61c9297d3d (diff) | |
download | pentadactyl-7d939adf116e2b71c36da59473b2d4ed50af4c01.tar.gz |
Add 'yankshort' option.
Diffstat (limited to 'common/modules/options.jsm')
-rw-r--r-- | common/modules/options.jsm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/modules/options.jsm b/common/modules/options.jsm index 4651ee94..bcbf32f2 100644 --- a/common/modules/options.jsm +++ b/common/modules/options.jsm @@ -336,7 +336,9 @@ var Option = Class("Option", { if (this.type === "string") defaultValue = Commands.quote(defaultValue); - if (isObject(defaultValue)) + if (isArray(defaultValue)) + defaultValue = defaultValue.map(Option.quote).join(","); + else if (isObject(defaultValue)) defaultValue = iter(defaultValue).map(function (val) val.map(Option.quote).join(":")).join(","); if (isArray(defaultValue)) |