   selectedItem: null
 
   initialize: (@minimapView) ->
+    @subscriptions = new CompositeDisposable
     @plugins = {}
-    @subscribe Minimap, 'plugin:added', ({name, plugin}) =>
+    @subscriptions.add Minimap.onDidAddPlugin ({name, plugin}) =>
       @addItemFor(name, plugin)
-    @subscribe Minimap, 'plugin:removed', ({name, plugin}) =>
+    @subscriptions.add Minimap.onDidRemovePlugin ({name, plugin}) =>
       @removeItemFor(name, plugin)
-    @subscribe Minimap, 'plugin:activated', ({name, plugin}) =>
+    @subscriptions.add Minimap.onDidActivatePlugin ({name, plugin}) =>
       @activateItem(name, plugin)
-    @subscribe Minimap, 'plugin:deactivated', ({name, plugin}) =>
+    @subscriptions.add Minimap.onDidDeactivatePlugin ({name, plugin}) =>
       @deactivateItem(name, plugin)
 
     @on 'core:move-up', @selectPreviousItem

    @trigger('minimap:quick-settings-destroyed')
    @off()
    @hiddenInput.off()
    @unsubscribe()
    @detach()

  initList: ->

{View} = require 'atom'
{CompositeDisposable} = require 'event-kit'
$ = View.__super__.constructor

Minimap = require './minimap'
