diff options
| author | Stephen Blott | 2015-05-13 05:52:53 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-05-13 06:04:09 +0100 |
| commit | 117b233ed5242cf0a144186ead860117f0a7cc83 (patch) | |
| tree | 9527476a89f518e7a62565f66b1be78f56c4f37e /content_scripts | |
| parent | 31c38cef439890364d6fc9e08fad2c826e6c97ca (diff) | |
| download | vimium-117b233ed5242cf0a144186ead860117f0a7cc83.tar.bz2 | |
Minor fixes for #1658.
- Mis-named: "handler" -> "name".
- We need to reset the HUD's innerHTML on hide to avoid a flicker when
HUD later becomes visible again (but with new text).
- There is no longer a need to hide the HUD in order to avoid mathing
the text in the HUD itself.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/hud.coffee | 2 | ||||
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee index 55c302d6..e07d0713 100644 --- a/content_scripts/hud.coffee +++ b/content_scripts/hud.coffee @@ -37,7 +37,7 @@ HUD = if immediate unless updateIndicator @hudUI.hide() - @hudUI.postMessage {handler: "hide"} + @hudUI.postMessage {name: "hide"} Mode.setIndicator() if updateIndicator else @tween.fade 0, 150, => @hide true, updateIndicator diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 8f0bdd5d..7e0416aa 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -868,8 +868,6 @@ executeFind = (query, options) -> document.body.classList.add("vimiumFindMode") - # prevent find from matching its own search query in the HUD - HUD.hide(true) # ignore the selectionchange event generated by find() document.removeEventListener("selectionchange",restoreDefaultSelectionHighlight, true) result = window.find(query, options.caseSensitive, options.backwards, true, false, true, false) |
