   shouldAllowDrag: ->
     (@paneContainer.getPanes().length > 1) or (@pane.getItems().length > 1)
 
-  onDragStart: (event) =>
+  onDragStart: (event) ->
     return unless matches(event.target, '.sortable')
 
     event.dataTransfer.setData 'atom-event', 'true'

        else
          element.parentElement.appendChild(placeholder)

  onDropOnOtherWindow: (fromPaneId, fromItemIndex) =>
    if @pane.id is fromPaneId
      if itemToRemove = @pane.getItems()[fromItemIndex]
        @pane.destroyItem(itemToRemove)

    catch error
      false

  onDragLeave: (event) ->
    @removePlaceholder()

  onDragEnd: (event) ->
    return unless matches(event.target, '.sortable')

    @clearDropTarget()

  onDragOver: (event) ->
    unless event.dataTransfer.getData('atom-event') is 'true'
      event.preventDefault()
      event.stopPropagation()
