 
 
     _toggleLevels: ->
-      console.log 'toggleLevels function'
       for level in @levels
         if level.getAttribute('data-level') >= @level + 1
           $(level).removeClass 'off-screen-level-open'

            if @level <= level
              event.stopPropagation()
              $(closest(el, 'off-screen-level')).addClass 'off-screen-level-overlay'
              @_openMenu subLevel

    _hideOnEsc: (event) =>
      @_resetMenu() if event.keyCode is 27

    _setupLevelsClosing: =>
      for levelEl in @levels

    _bindEvents: =>

      bodyClickBinding = (el) =>
        @resetMenu()
        el.removeEventListener @eventType, bodyClickBinding

      @trigger.bind @eventType, (event) =>
        event.stopPropagation()
        event.preventDefault()
        if @open
          @resetMenu()
        else
          @openMenu()
          document.addEventListener @eventType, (event) =>
            if @open and not hasParent(event.target, @el.id)
              bodyClickBinding document
