aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-02-28 11:33:12 +0000
committerStephen Blott2016-02-28 11:33:12 +0000
commita1cf7228f47c2f4c837a442deb7b07d94b5dd2b1 (patch)
treee65ce32fa3b3b157c2a556f318e3d2d8b2ba73a3
parentb3280cba4321ba88d8b38f234b4d3d06a156f750 (diff)
downloadvimium-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.coffee2
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.