aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authormrmr19932017-10-28 17:04:37 +0100
committermrmr19932017-10-28 17:04:37 +0100
commitf65720e58e31a0218e0c176a9140520451e5dd7d (patch)
tree0407fe8896233840478dae448fded55bd043ad0c /content_scripts
parent5c4aab3d4488e5d8d64aba122791f86fc9766b99 (diff)
downloadvimium-f65720e58e31a0218e0c176a9140520451e5dd7d.tar.bz2
Remove invokeCommandString, call NormalModeCommands directly
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/mode_normal.coffee2
-rw-r--r--content_scripts/vimium_frontend.coffee2
2 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/mode_normal.coffee b/content_scripts/mode_normal.coffee
index 6db42948..d6f2934e 100644
--- a/content_scripts/mode_normal.coffee
+++ b/content_scripts/mode_normal.coffee
@@ -31,7 +31,7 @@ class NormalMode extends KeyHandlerMode
else if registryEntry.background
chrome.runtime.sendMessage {handler: "runBackgroundCommand", registryEntry, count}
else
- Utils.invokeCommandString registryEntry.command, count, {registryEntry}
+ NormalModeCommands[registryEntry.command] count, {registryEntry}
enterNormalMode = (count) ->
new NormalMode
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 5549664e..b936fe04 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -142,7 +142,7 @@ initializePreDomReady = ->
frameFocused: -> # A frame has received the focus; we don't care here (UI components handle this).
checkEnabledAfterURLChange: checkEnabledAfterURLChange
runInTopFrame: ({sourceFrameId, registryEntry}) ->
- Utils.invokeCommandString registryEntry.command, sourceFrameId, registryEntry if DomUtils.isTopFrame()
+ NormalModeCommands[registryEntry.command] sourceFrameId, registryEntry if DomUtils.isTopFrame()
linkHintsMessage: (request) -> HintCoordinator[request.messageType] request
chrome.runtime.onMessage.addListener (request, sender, sendResponse) ->