       @canvas.removeEventListener 'mousedown', canvasMousedown
       @visibleArea.removeEventListener 'mousedown', visibleAreaMousedown
 
+  # Initializes the scroll indicator div when the `minimapScrollIndicator`
+  # settings is enabled.
   initializeScrollIndicator: ->
     @scrollIndicator = document.createElement('div')
     @scrollIndicator.classList.add 'minimap-scroll-indicator'
     @controls.appendChild(@scrollIndicator)
 
+  # Disposes the scroll indicator div when the `minimapScrollIndicator`
+  # settings is disabled.
   disposeScrollIndicator: ->
     @controls.removeChild(@scrollIndicator)
     @scrollIndicator = undefined
 
+  # Initializes the quick settings openener div when the
+  # `displayPluginsControls` setting is enabled.
   initializeOpenQuickSettings: ->
     return if @openQuickSettings?
 

  #    ##    ## ##    ## ##    ##
  #     ######   ######   ######

  applyStyles: (element, styles) ->
    cssText = ''



    @updateCanvas()

  # Defines whether to render the code highlights or not.
  #
  # displayCodeHighlights - A {Boolean}.
  setDisplayCodeHighlights: (@displayCodeHighlights) ->
    @requestForcedUpdate() if @attached

  # Internal: Polling callback used to detect visibility and size changes.
  pollDOM: ->
    if @isVisible()
      @requestForcedUpdate() unless !@wasVisible

      @measureHeightAndWidth(false)

  # Internal: A method that checks for visibility changes in the
  # {MinimapElement}. The method returns `true` when the visibility changed
  # from visible to hidden or from hidden to visible.
  #
  # Returns a {Boolean}.
  checkForVisibilityChange: ->
    if @isVisible()
      if @wasVisible
