diff options
| -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 | 
