From 4cbfe67da163c899f270cffb9c8bb4dd4af5c996 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Mon, 9 Nov 2015 07:38:14 +0100 Subject: [PATCH] Tiny code cleanup --- extension/lib/events-frame.coffee | 2 +- extension/lib/modes.coffee | 2 +- extension/lib/vimfx.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extension/lib/events-frame.coffee b/extension/lib/events-frame.coffee index bc21227..815eaa2 100644 --- a/extension/lib/events-frame.coffee +++ b/extension/lib/events-frame.coffee @@ -86,7 +86,7 @@ class FrameEventManager # Clicks are always counted as page interaction. Listen for 'mousedown' # instead of 'click' to mark the interaction as soon as possible. - @listen('mousedown', (event) => @vim.markPageInteraction()) + @listen('mousedown', @vim.markPageInteraction.bind(@vim)) messageManager.listen('browserRefocus', => # Suppress the next two focus events (for `document` and `window`; see diff --git a/extension/lib/modes.coffee b/extension/lib/modes.coffee index aa1e53a..805b3c4 100644 --- a/extension/lib/modes.coffee +++ b/extension/lib/modes.coffee @@ -101,7 +101,7 @@ mode('normal', { # dialog too. return autoInsertMode - # Note that this special handling of Escape is only used in normal mode. + # Note that this special handling of Escape is only used in Normal mode. # There are two reasons we might suppress it in other modes. If some custom # dialog of a website is open, we should be able to cancel hint markers on # it without closing it. Secondly, otherwise cancelling hint markers on diff --git a/extension/lib/vimfx.coffee b/extension/lib/vimfx.coffee index f8ca12b..be30347 100644 --- a/extension/lib/vimfx.coffee +++ b/extension/lib/vimfx.coffee @@ -27,7 +27,7 @@ prefs = require('./prefs') utils = require('./utils') Vim = require('./vim') -DIGIT = /^\d$/ +DIGIT = /^\d$/ class VimFx extends utils.EventEmitter constructor: (@modes, @options) -> -- 2.39.3