diff options
| author | Stephen Blott | 2016-03-18 06:20:20 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2016-03-18 07:21:25 +0000 | 
| commit | 51e67b8c623cb68b9be2e172dffc7790da0ae288 (patch) | |
| tree | 69f92ad692d1b850e396af8dd31c40935534d74a /tests | |
| parent | 5f1acf3c66d9e128883a7a54409a08a42ab9ea05 (diff) | |
| download | vimium-51e67b8c623cb68b9be2e172dffc7790da0ae288.tar.bz2 | |
Refactor the front-end initialisation sequence.
The front-end initialisation sequence has become quite confused.
This simplifies it, makes things which must be idemtpotent explicit and
renames some functions to make it clear when they run.  It also avoids a
situation where we were possibly installing a `domReady` function to
initialise the HUD multiple times.
Should be a no-op functionality wise.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dom_tests/dom_tests.coffee | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee index b1d1e586..c3f4ecc1 100644 --- a/tests/dom_tests/dom_tests.coffee +++ b/tests/dom_tests/dom_tests.coffee @@ -1,6 +1,6 @@  # Install frontend event handlers. -installListeners true +installListeners()  HUD.init()  Frame.registerFrameId chromeFrameId: 0 @@ -28,7 +28,7 @@ commandName = commandCount = null  initializeModeState = ->    Mode.reset()    handlerStack.reset() -  initializeModes() +  installModes()    normalMode.setPassKeys "p"    normalMode.setKeyMapping      m: options: {}, command: "m" # A mapped key. | 
