 
   # Handle entry drop event
   onDrop: (e) ->
+    @dragEventCounts = new WeakMap
+    @dragPaths = []
     if entry = e.target.closest('.entry')
       return if @rootDragAndDrop.isDragging(e)
 

      e.stopPropagation()

      entry = header.parentNode
      @dragEventCounts.set(entry, @dragEventCounts.get(entry) - 1)
      entry.classList.remove('selected') if @dragEventCounts.get(entry) is 0

  # Handle entry name object dragstart event
  onDragStart: (e) ->
    @selectOnMouseUp = null
    if entry = e.target.closest('.entry')
      e.stopPropagation()


      e.dataTransfer.effectAllowed = "move"
      e.dataTransfer.setDragImage(dragImage, 0, 0)
      e.dataTransfer.setData("initialPaths", @dragPaths)

      window.requestAnimationFrame ->
        dragImage.remove()
