diff options
| author | Stephen Blott | 2016-02-01 06:27:37 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-02-01 06:27:37 +0000 |
| commit | fc9ac71d78ecfb2dd33baa649e8971a98518f943 (patch) | |
| tree | 345ec0a8d72cfa6891c221824e01a37143817cf9 /content_scripts/mode.coffee | |
| parent | 8fdc87e4079975cf2a31fc4b60afb897262c525c (diff) | |
| parent | b5cb14171b3dbd48ebb213654f2758781d7f127c (diff) | |
| download | vimium-fc9ac71d78ecfb2dd33baa649e8971a98518f943.tar.bz2 | |
Merge pull request #1963 from smblott-github/link-hints-with-count
Link hints with count
Diffstat (limited to 'content_scripts/mode.coffee')
| -rw-r--r-- | content_scripts/mode.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee index c7c6bd55..5cc8800e 100644 --- a/content_scripts/mode.coffee +++ b/content_scripts/mode.coffee @@ -187,12 +187,12 @@ class Mode onExit: (handler) -> @exitHandlers.push handler - exit: -> + exit: (args...) -> if @modeIsActive @log "deactivate:", @id unless @modeIsExiting @modeIsExiting = true - handler() for handler in @exitHandlers + handler args... for handler in @exitHandlers handlerStack.remove handlerId for handlerId in @handlers Mode.modes = Mode.modes.filter (mode) => mode != @ @modeIsActive = false |
