     el.addClass 'is-dragging'
     event.originalEvent.dataTransfer.setData 'sortable-index', el.index()
 
-    @placeholderEl = $('<li/>', class: 'placeholder')
-
     pane = $(event.target).closest('.pane')
     paneIndex = @paneContainer.indexOfPane(pane)
     event.originalEvent.dataTransfer.setData 'from-pane-index', paneIndex


    @find(".is-dragging").removeClass 'is-dragging'
    @removeDropTargetClasses()

    event.stopPropagation()


      sortables.index(el.next('.sortable'))
    else
      sortables.index(el) + 1

  getPlaceholderElement: ->
    @placeholderEl = $('<li/>', class: 'placeholder') unless @placeholderEl
    @placeholderEl

  removePlaceholderElement: ->
    @placeholderEl.remove() if @placeholderEl
    @placeholderEl = null

  isPlaceholderElement: (element) ->
    element.is('.placeholder')

  getTabBar: (target) ->
    target = $(target)
    if target.is('.tab-bar') then target else target.parents('.tab-bar')
