 
     # Deactivate old mode
     if (mode isnt @mode)
-      @emitter.emit('will-deactivate-mode', {@mode, @submode})
+      @emitter.emit 'will-deactivate-mode', {@mode, @submode}
       @deactivator?.dispose()
 
     # Activate


  onWillDeactivateMode: (fn) ->
    @emitter.on 'will-deactivate-mode', fn

  # activate: Public
  #  Use this method to change mode, DONT use other direct method.


    # Now update mode variables and update CSS selectors.
    [@mode, @submode] = [mode, submode]
    @emitter.emit 'did-activate-mode', {@mode, @submode}

  # Normal
  # -------------------------
