     @trigger 'minimap:decoration-added', marker, decoration
     decoration
 
+  # Internal: Registers a change in the {MinimapRenderView} pending changes
+  # corresponding to the passed-in decoration.
+  #
+  # decoration - The `Decoration` to register changes for.
   stackDecorationChanges: (decoration) ->
     range = decoration.marker.getScreenRange()
     return unless range?
 
     @stackRangeChanges(range)
 
+  # Internal: Registers a change for the specified range.
+  #
+  # range - The `Range` ro register changes for.
   stackRangeChanges: (range) ->
     startScreenRow = range.start.row
     endScreenRow = range.end.row


    out


  decorationsForScreenRowRange: (startScreenRow, endScreenRow) ->
    decorationsByMarkerId = {}


      @trigger 'minimap:decoration-removed', marker, decoration
      @removedAllMarkerDecorations(marker) if decorations.length is 0

  # Removes all the decorations registered for the passed-in marker.
  #
  # marker - The `marker` for which removing decorations.
  removeAllDecorationsForMarker: (marker) ->
    decorations = @decorationsByMarkerId[marker.id].slice()
    for decoration in decorations
      @trigger 'minimap:decoration-removed', marker, decoration
    @removedAllMarkerDecorations(marker)

  # Internal: Performs the removal of a decoration for a given marker.
  #
  # marker - The `marker` for which removing decorations.
  removedAllMarkerDecorations: (marker) ->
    @decorationMarkerChangedSubscriptions[marker.id].dispose()
    @decorationMarkerDestroyedSubscriptions[marker.id].dispose()
