   #
   # editorView - The `TextEditorView` for which displaying a minimap.
   constructor: (editorView) ->
+    @emitter = new Emitter
     @setEditorView(editorView)
 
     @paneView.classList.add('with-minimap')

{$, View} = require 'atom-space-pen-views'
Delegato = require 'delegato'
{CompositeDisposable, Disposable} = require 'event-kit'

MinimapRenderView = require './minimap-render-view'
MinimapIndicator = require './minimap-indicator'

  updateScroll: =>
    @indicator.setX(@scrollView.scrollLeft)
    @updateScrollY()
    @emitter.emit 'did-scroll'

  # Internal: Updates the position of the various elements of the minimap
  # after a scroll changes.
