+{EditorView} = require 'atom'
 Mixin = require 'mixto'
 MinimapView = require '../minimap-view'
 

    # the callback.
    @eachEditorViewSubscription = atom.workspaceView.eachEditorView (editorView) =>
      editorId = editorView.editor.id
      view = new MinimapView(editorView)

      @minimapViews[editorId] = view

          view.destroy()
          delete @minimapViews[editorId]
          @emit('minimap-view:destroyed', {view})

          paneView.addClass('with-minimap') if paneView.activeView instanceof EditorView
