 {$, View} = require 'atom-space-pen-views'
 Delegato = require 'delegato'
-{CompositeDisposable, Disposable} = require 'event-kit'
+{CompositeDisposable, Disposable, Emitter} = require 'event-kit'
 
 MinimapRenderView = require './minimap-render-view'
 MinimapIndicator = require './minimap-indicator'


    @subscriptions.add atom.config.observe 'editor.preferredLineLength', =>
      @updateMinimapSize()

  # Internal: Computes the scale of the minimap display relatively to the
  # corresponding editor view.

  #
  # editorView - The `TextEditorView` for which displaying a minimap.
  constructor: (editorView) ->
    @emitter = new Emitter
    @setEditorView(editorView)

    @paneView.classList.add('with-minimap')
