diff options
| author | Stephen Blott | 2015-06-17 12:26:11 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-06-17 12:26:11 +0100 |
| commit | 53e84b4800040fd573c7dce4493eb878ceb93766 (patch) | |
| tree | db1dfd7b026e182ad19a37e4147eaf7d167c91ca | |
| parent | aa00e29dc2533b6701c65935223599671c5833b1 (diff) | |
| parent | b7e13a1c2712ed76a299d4d28597197593556b66 (diff) | |
| download | vimium-53e84b4800040fd573c7dce4493eb878ceb93766.tar.bz2 | |
Merge pull request #1740 from smblott-github/synchronise-initialisation
Initialise modes and install listeners at the same time.
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 8c28b4e6..bffbd457 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -126,7 +126,6 @@ window.initializeModes = -> # Complete initialization work that sould be done prior to DOMReady. # initializePreDomReady = -> - initializeModes() checkIfEnabledForUrl() refreshCompletionKeys() @@ -190,6 +189,7 @@ installListener = (element, event, callback) -> installedListeners = false window.installListeners = -> unless installedListeners + initializeModes() # Key event handlers fire on window before they do on document. Prefer window for key events so the page # can't set handlers to grab the keys before us. for type in [ "keydown", "keypress", "keyup", "click", "focus", "blur", "mousedown", "scroll" ] |
