   previousActiveItem: null
 
   initialize: (args...) ->
-    @disposables = new CompositeDisposable
+    @subscriptions = new CompositeDisposable
 
     if args[0] instanceof Pane
       @model = args[0]

    @closest('.panes').view()

  beforeRemove: ->
    @disposables.dispose()
    @model.destroy() unless @model.isDestroyed()

  remove: (selector, keepData) ->

    @handleEvents()

  handleEvents: ->
    @subscriptions.add @model.observeActiveItem(@onActiveItemChanged)
    @subscriptions.add @model.onDidAddItem(@onItemAdded)
    @subscriptions.add @model.onDidRemoveItem(@onItemRemoved)
    @subscriptions.add @model.onDidMoveItem(@onItemMoved)
    @subscriptions.add @model.onWillDestroyItem(@onBeforeItemDestroyed)
    @subscriptions.add @model.onDidActivate(@onActivated)
    @subscriptions.add @model.observeActive(@onActiveStatusChanged)

    @subscribe this, 'focusin', => @model.focus()
    @subscribe this, 'focusout', => @model.blur()
