diff options
| author | Stephen Blott | 2015-01-02 13:22:31 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-02 13:23:32 +0000 |
| commit | b179d80ac9c35eb85de3995e4c4fb7dc9945ed75 (patch) | |
| tree | 99d96777f6a175c396ac132dca16526c5f96f1e6 /content_scripts/vimium_frontend.coffee | |
| parent | 298ee34b1c90b0203a74a2d158858428475bfd95 (diff) | |
| download | vimium-b179d80ac9c35eb85de3995e4c4fb7dc9945ed75.tar.bz2 | |
Modes; fix badges.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index da1f5de1..6d63b24a 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -124,9 +124,9 @@ initializePreDomReady = -> # Overriding updateBadgeForMode() from Mode.updateBadgeForMode(). updateBadgeForMode: (badge) -> - badge.badge ||= @badge - badge.badge = "" unless isEnabledForUrl - Mode.propagate # Not really necessary, but makes intention clear and does no harm. + handlerStack.alwaysPropagate => + badge.badge ||= @badge + badge.badge = "" unless isEnabledForUrl # Initialize the scroller. The scroller install a key handler, and this is next on the handler stack, # immediately above normal mode. @@ -686,7 +686,6 @@ updateFindModeQuery = -> findModeQuery.matchCount = text.match(pattern)?.length handleKeyCharForFindMode = (keyChar) -> - console.log "xxxxxxxxxxxxxxx" findModeQuery.rawQuery += keyChar updateFindModeQuery() performFindInPlace() |
