diff options
| author | Stephen Blott | 2016-04-18 05:39:01 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-04-18 05:39:01 +0100 |
| commit | 8846d04f3043e4be4be3d8e63c1efb46fe7e0b0e (patch) | |
| tree | be4e76270a1b0fdffc58c1a706cc4983e57b23d9 /content_scripts/hud.coffee | |
| parent | c01d7eea8675f9a7d84999777e8de72244d687b6 (diff) | |
| download | vimium-8846d04f3043e4be4be3d8e63c1efb46fe7e0b0e.tar.bz2 | |
Revert "UI-compnent commands must wait for the document to be ready."
This reverts commit c01d7eea8675f9a7d84999777e8de72244d687b6.
Preparatory to implementing an alternative approach.
Diffstat (limited to 'content_scripts/hud.coffee')
| -rw-r--r-- | content_scripts/hud.coffee | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee index 38c9ab9b..62bcf03f 100644 --- a/content_scripts/hud.coffee +++ b/content_scripts/hud.coffee @@ -23,17 +23,15 @@ HUD = @_showForDurationTimerId = setTimeout((=> @hide()), duration) show: (text) -> - DomUtils.ifDocumentIsReady => - @init() - clearTimeout(@_showForDurationTimerId) - @hudUI.activate {name: "show", text} - @tween.fade 1.0, 150 + @init() + clearTimeout(@_showForDurationTimerId) + @hudUI.activate {name: "show", text} + @tween.fade 1.0, 150 showFindMode: (@findMode = null) -> - DomUtils.ifDocumentIsReady => - @init() - @hudUI.activate name: "showFindMode" - @tween.fade 1.0, 150 + @init() + @hudUI.activate name: "showFindMode" + @tween.fade 1.0, 150 search: (data) -> @findMode.findInPlace data.query |
