diff options
| author | Stephen Blott | 2016-12-11 15:27:06 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-12-11 15:27:07 +0000 |
| commit | b4eb7140f5cf4f567c83f7af952b09e8bc80918d (patch) | |
| tree | 59eaa10c99c25ca4ed67a181a93dd8eee3a5b668 /background_scripts | |
| parent | 7fe88a70031c09f530ad2c22be88c30c7f1e787e (diff) | |
| download | vimium-b4eb7140f5cf4f567c83f7af952b09e8bc80918d.tar.bz2 | |
Add the raw option list to the command registry.
Keep the option list (in addition to the parsed command options) because
some commands may depend upon the command option order. One currect
example is #2318.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/commands.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index aece4bec..a323b46f 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -24,12 +24,12 @@ Commands = switch tokens[0] when "map" if 3 <= tokens.length and not unmapAll - [_, key, command, optionsList...] = tokens + [_, key, command, optionList...] = tokens if not seen[key] and registryEntry = @availableCommands[command] seen[key] = true keySequence = @parseKeySequence key - options = @parseCommandOptions command, optionsList - @keyToCommandRegistry[key] = extend {keySequence, command, options}, @availableCommands[command] + options = @parseCommandOptions command, optionList + @keyToCommandRegistry[key] = extend {keySequence, command, options, optionList}, @availableCommands[command] when "unmap" if tokens.length == 2 seen[tokens[1]] = true |
