aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-02-16 14:12:16 +0000
committerStephen Blott2016-02-16 14:12:16 +0000
commit8e3ac1867b7577814865bf1cb40d0b865de30b1a (patch)
tree53279879b1549a597b71de93530d0feb8ab6f044 /background_scripts/commands.coffee
parentceada9cdf8cb97c35b4871553e3c8b642c4806ef (diff)
parent56fed2ac6663d99ca03023f3ffa313c51de5fe32 (diff)
downloadvimium-8e3ac1867b7577814865bf1cb40d0b865de30b1a.tar.bz2
Merge pull request #1994 from mrmr1993/correct-loop-types-2
Use `for own ... of` instead of `for ... of`
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 9c958461..db8cc60f 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -1,6 +1,6 @@
Commands =
init: ->
- for command, description of commandDescriptions
+ for own command, description of commandDescriptions
@addCommand(command, description[0], description[1])
availableCommands: {}
@@ -69,7 +69,7 @@ Commands =
clearKeyMappingsAndSetDefaults: ->
@keyToCommandRegistry = {}
- @mapKeyToCommand { key, command } for key, command of defaultKeyMappings
+ @mapKeyToCommand { key, command } for own key, command of defaultKeyMappings
# An ordered listing of all available commands, grouped by type. This is the order they will
# be shown in the help page.