mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 15:27:58 +01:00
Fixes, mostly, most of which should really be in the default branch.
--HG-- branch : groups
This commit is contained in:
@@ -62,6 +62,13 @@ var Option = Class("Option", {
|
||||
if (arguments.length > 3) {
|
||||
if (this.type == "string")
|
||||
defaultValue = Commands.quote(defaultValue);
|
||||
|
||||
if (isObject(defaultValue))
|
||||
defaultValue = iter(defaultValue).map(function (val) val.map(Option.quote).join(":")).join(",");
|
||||
|
||||
if (isArray(defaultValue))
|
||||
defaultValue = defaultValue.map(Option.quote).join(",");
|
||||
|
||||
this.defaultValue = this.parse(defaultValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user