     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

    # which is just a ul.dropdown-menu > li
    expandToDropdown: (item) ->
      return false if item.hasClass('dropdown') || item.hasClass('effective-menu-expand')

      item.append(@menu.data('effective-menu-expand-html'))
      item.addClass('dropdown')


      item.parentsUntil(@menu, 'li.dropdown').addClass('open')

    # Very top level items are assigned Depth of 0
    # The first dropdowns all have Depth of 1
    depthOf: (item) -> item.parentsUntil(@menu, 'li').length

    # Just pass _destroyed = 1 back to rails to delete this item
    # Rails seems to disregard new items set to the new Date.now() values anyhow
