     @on 'core:cancel', @destroy
     @on 'core:validate', @toggleSelectedItem
 
-    @subscribe @codeHighlights, 'mousedown', (e) =>
+    @codeHighlights.on 'mousedown', (e) =>
       e.preventDefault()
       @minimapView.setDisplayCodeHighlights(!@minimapView.displayCodeHighlights)
       @codeHighlights.toggleClass('active', @minimapView.displayCodeHighlights)

  selectedItem: null

  initialize: (@minimapView) ->
    @plugins = {}
    @subscribe Minimap, 'plugin:added', ({name, plugin}) =>
      @addItemFor(name, plugin)
    @subscribe Minimap, 'plugin:removed', ({name, plugin}) =>
      @removeItemFor(name, plugin)
    @subscribe Minimap, 'plugin:activated', ({name, plugin}) =>
      @activateItem(name, plugin)
    @subscribe Minimap, 'plugin:deactivated', ({name, plugin}) =>
      @deactivateItem(name, plugin)

    @on 'core:move-up', @selectPreviousItem

    @trigger('minimap:quick-settings-destroyed')
    @off()
    @hiddenInput.off()
    @codeHighlights.off()
    @subscriptions.dispose()
    @detach()

  initList: ->
