 class FileSummaryView extends HTMLElement
   initialize: (@model) ->
     @model.observe ['file', 'status'], @setFile.bind(@)
-
+    @subscriptions = new CompositeDisposable
     @setFile()
 
 

GitChanges = require './git-changes'

BaseTemplate = """

    e?.stopImmediatePropagation()

    promise = if @model.status == 'unstaged'
      @git.stagePath(@model.file.path())
    else
      @git.unstagePath(@model.file.path())

    promise.then =>
      atom.emit('did-update-git-repository')
