aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee6
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