     # which is just a ul.dropdown-menu > li
     expandToDropdown: (item) ->
       return false if item.hasClass('dropdown') || item.hasClass('effective-menu-expand')
+      return false if @depthOf(item) >= @options.maxDepth
 
       item.append(@menu.data('effective-menu-expand-html'))
       item.addClass('dropdown')

          item.parentsUntil(@menu, 'li').andSelf().addClass('open')
        else
          event.preventDefault() # Enable drag and drop
          @expandToDropdown(item) if @droppable.time? && ((new Date().getTime()) - @droppable.time) > @options.expandThreshold

        # If I don't have the placeholder class already
        if item.hasClass('placeholder') == false

    defaults:
      menuClass: 'effective-menu'
      expandThreshold: 250  # Seconds before a leaf li item will be auto-expanded into a dropdown
      maxDepth: 2

    menu: null
    draggable: null
