               @button type: 'button', class: 'btn status-indicator', tabindex: -1, outlet: 'statusIndicator'
 
   initialize: (@pack, @packageManager, options) ->
+    @disposables = new CompositeDisposable()
+
     # It might be useful to either wrap @pack in a class that has a ::validate
     # method, or add a method here. At the moment I think all cases of malformed
     # package metadata are handled here and in ::content but belt and suspenders,

        'This package has deprecations and is not installable.'

  handlePackageEvents: ->
    atom.packages.onDidDeactivatePackage (pack) =>
      @updateDisabledState() if pack.name is @pack.name

    atom.packages.onDidActivatePackage (pack) =>
      @updateDisabledState() if pack.name is @pack.name

    atom.config.onDidChange 'core.disabledPackages', =>
      @updateDisabledState()

    @subscribeToPackageEvent 'package-installing', (pack) =>

      false

  detached: ->
    @disposables.dispose()

  loadCachedMetadata: ->
    @client.avatar ownerFromRepository(@pack.repository), (err, avatarPath) =>
