 class @ZenMode
   @fullscreen_prefix = 'fullscreen_'
-  @ESC = 27
 
   constructor: ->
     @active_zen_area = null
     @active_checkbox = null
 
     $('body').on 'change', '.zennable input[type=checkbox]', (e) =>
-      checkbox = e.currentTarget;
+      checkbox = e.currentTarget
       if checkbox.checked
         Mousetrap.pause()
         @udpateActiveZenArea(checkbox)

        @exitZenMode()

    $(document).on 'keydown', (e) =>
      console.log("esc")
      if e.keyCode is ZenMode.ESC
        @exitZenMode()

    $(window).on 'hashchange', @updateZenModeFromLocationHash

    if checkbox
      @udpateActiveZenArea(checkbox)
    else
      @exitZenMode()
