 
     @storeActiveBuffer()
 
-  # Private:
   attach: ->
     atom.workspaceView.appendToBottom(this) unless @hasParent()
 

    @bufferSubscriptions.push([event, callback])
    @buffer.on(event, callback) if @buffer

  # Private:
  subscribeAllToBuffer: ->
    return unless @buffer
    for [event, callback] in @bufferSubscriptions
      @buffer.on(event, callback)

  # Private:
  unsubscribeAllFromBuffer: ->
    return unless @buffer
    for [event, callback] in @bufferSubscriptions

  getActiveItem: ->
    atom.workspaceView.getActivePaneItem()

  storeActiveBuffer: ->
    @buffer = @getActiveItem()?.getBuffer?()

