     @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)

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

  initList: ->

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

Minimap = require './minimap'
