 class MinimapView extends View
   @content: ->
     @div class: 'minimap', =>
+      @subview 'miniEditorView', new MinimapEditorView()
       @div outlet: 'miniOverlayer', class: "minimap-overlayer"
 
   configs: {}

  # wtf? Long long function!
  updateMinimapView: ->
    unless @paneView.find('.minimap').length
      @miniEditorView = new MinimapEditorView()
      @miniScrollView = @miniEditorView.find('.scroll-view')
      @miniOverlayer.before(@miniEditorView)
      @paneView.append(this)

    if !@editor

  initialize: ->
    @attach()

    @on 'mousewheel', @mouseWheel.bind(this)
    @on 'mousedown', @mouseDown.bind(this)

    @subscribe @paneView.model.$activeItem, @onActiveItemChanged
    @subscribe @paneView.model, 'destroy', => @destroy()
