           height: indicatorHeight + 'px'
           transform: @makeTranslate(0, indicatorScroll)
 
-      @disposeScrollIndicator() if not @minimap.canScroll()
+      @disposeScrollIndicator() if not minimap.canScroll()
 
     @updateCanvas()
-    @minimap.clearCache()
+    minimap.clearCache()
 
   # Defines whether to render the code highlights or not.
   #

    else
      @applyStyles @canvas, transform: canvasTransform

    if @minimapScrollIndicator and @minimap.canScroll() and not @scrollIndicator
      @initializeScrollIndicator()

    if @scrollIndicator?
      minimapScreenHeight = @minimap.getScreenHeight()
      indicatorHeight = minimapScreenHeight * (minimapScreenHeight / @minimap.getHeight())
      indicatorScroll = (minimapScreenHeight - indicatorHeight) * @minimap.getCapedTextEditorScrollRatio()

      if SPEC_MODE
        @applyStyles @scrollIndicator,

  # Internal: Performs the actual {MinimapElement} update.
  update: ->
    return unless @attached and @isVisible() and @minimap?
    minimap = @minimap
    minimap.enableCache()

    visibleAreaLeft = minimap.getTextEditorScaledScrollLeft()
    visibleAreaTop = minimap.getTextEditorScaledScrollTop() - minimap.getScrollTop()
    visibleWidth = Math.min(@canvas.width / devicePixelRatio, @width)

    if @adjustToSoftWrap and @flexBasis
