     @container.activateNextPane() if @isActive()
     @emitter.emit 'did-destroy'
     @emitter.dispose()
+    @subscriptions.dispose()
     item.destroy?() for item in @items.slice()
     @container?.didDestroyPane(pane: this)
 

{find, compact, extend, last} = require 'underscore-plus'
{Model} = require 'theorist'
{Emitter} = require 'event-kit'
Serializable = require 'serializable'
Grim = require 'grim'
PaneAxis = require './pane-axis'

    super

    @emitter = new Emitter
    @subscriptions = new CompositeDisposable
    @items = []

    @addItems(compact(params?.items ? []))
