From 117b233ed5242cf0a144186ead860117f0a7cc83 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 13 May 2015 05:52:53 +0100 Subject: 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. --- content_scripts/hud.coffee | 2 +- content_scripts/vimium_frontend.coffee | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'content_scripts') 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) -- cgit v1.2.3