     @emit 'before-item-destroyed', item
     if @promptToSaveItem(item)
       @emit 'item-destroyed', item
-      @destroyingItem = true
-      @removeItem(item)
-      @destroyingItem = false
+      @removeItem(item, true)
       item.destroy?()
       true
     else

      .map((activePane) => activePane is this)
      .distinctUntilChanged()

  destroyingItem: false

  constructor: (params) ->
    super



    @subscribe @items.onRemoval (item, index) =>
      @unsubscribe item if typeof item.on is 'function'

    @when @$focused, => @makeActive()

