aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2016-03-26 11:45:56 +0000
committerStephen Blott2016-03-26 11:45:59 +0000
commit5ab004ba38019aea32408af2bff422e6f01a7430 (patch)
tree57157556189c3e82453cf3de2ff75c229b860497 /content_scripts
parent068b6513bc3226e4ef07e8cfb1ef2d5fb0ae2cc4 (diff)
downloadvimium-5ab004ba38019aea32408af2bff422e6f01a7430.tar.bz2
passCountToCommand isn't needed.
We pass the count to *all* front-end commands. All of the commands which don't use a count, just ignore it.
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 0a683083..6297c729 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -121,10 +121,8 @@ class NormalMode extends KeyHandlerMode
handler: "sendMessageToFrames", message: {name: "runInTopFrame", sourceFrameId: frameId, registryEntry}
else if registryEntry.background
chrome.runtime.sendMessage {handler: "runBackgroundCommand", frameId, registryEntry, count}
- else if registryEntry.passCountToFunction
- Utils.invokeCommandString registryEntry.command, [count]
else
- Utils.invokeCommandString registryEntry.command for i in [0...count]
+ Utils.invokeCommandString registryEntry.command, [count]
installModes = ->
# Install the permanent modes. The permanently-installed insert mode tracks focus/blur events, and