diff options
| author | Stephen Blott | 2016-02-28 11:33:12 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-02-28 11:33:12 +0000 |
| commit | a1cf7228f47c2f4c837a442deb7b07d94b5dd2b1 (patch) | |
| tree | e65ce32fa3b3b157c2a556f318e3d2d8b2ba73a3 | |
| parent | b3280cba4321ba88d8b38f234b4d3d06a156f750 (diff) | |
| download | vimium-a1cf7228f47c2f4c837a442deb7b07d94b5dd2b1.tar.bz2 | |
Fix defualt command "options".
The default (for when no options are provided) is of the wrong type.
This works as is, but should really be fixed -- as here.
| -rw-r--r-- | background_scripts/commands.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 4b087060..ab9992b3 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -29,7 +29,7 @@ Commands = logMessage? "#{command} doesn't exist!" return - options ?= [] + options ?= {} @keyToCommandRegistry[key] = extend { command, options }, @availableCommands[command] # Lower-case the appropriate portions of named keys. |
