     out
 
   checkMarkerScope: (forceEvaluation=false) ->
+    return if @destroyed
     range = @marker.getBufferRange()
 
     try

module.exports =
class ColorMarker
  constructor: ({@marker, @color, @text, @invalid, @colorBuffer}) ->
    @subscriptions = new CompositeDisposable
    @subscriptions.add @marker.onDidDestroy => @destroyed()
    @subscriptions.add @marker.onDidChange =>
      if @marker.isValid()
        @checkMarkerScope()

    @checkMarkerScope()

  destroy: ->
    return if @destroyed
    @marker.destroy()

  markerWasDestroyed: ->
    return if @destroyed
    @subscriptions.dispose()
    {@marker, @color, @text, @colorBuffer} = {}
    @destroyed = true

  match: (properties) ->
    return false if @destroyed

    bool = true

