diff options
| author | Stephen Blott | 2016-03-26 11:57:41 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-03-26 11:57:45 +0000 |
| commit | b3f9dc520a8f7245db44f843b3994d5e32b19eeb (patch) | |
| tree | d94ce13fbe728cb3b9fafbab3ca3168af755826e /content_scripts/vimium_frontend.coffee | |
| parent | c40f6fa3da204144b6a1a0fca5f7849a9ce5fe3e (diff) | |
| download | vimium-b3f9dc520a8f7245db44f843b3994d5e32b19eeb.tar.bz2 | |
Simplify invokeCommandString().
There's no need to have the previous unusual calling style (passing the
arguments as a list. It looks more natural to pass tham just as regular
arguments, as here.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 6297c729..659acdca 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -122,7 +122,7 @@ class NormalMode extends KeyHandlerMode else if registryEntry.background chrome.runtime.sendMessage {handler: "runBackgroundCommand", frameId, registryEntry, count} else - Utils.invokeCommandString registryEntry.command, [count] + Utils.invokeCommandString registryEntry.command, count installModes = -> # Install the permanent modes. The permanently-installed insert mode tracks focus/blur events, and @@ -153,7 +153,7 @@ initializePreDomReady = -> frameFocused: -> checkEnabledAfterURLChange: checkEnabledAfterURLChange runInTopFrame: ({sourceFrameId, registryEntry}) -> - Utils.invokeCommandString registryEntry.command, [sourceFrameId, registryEntry] if DomUtils.isTopFrame() + Utils.invokeCommandString registryEntry.command, sourceFrameId, registryEntry if DomUtils.isTopFrame() chrome.runtime.onMessage.addListener (request, sender, sendResponse) -> # These requests are intended for the background page, but they're delivered to the options page too. |
