     @checkMarkerScope()
 
   destroy: ->
-    return if @wasDestroyed
+    return if @destroyed
     @marker.destroy()
 
-  destroyed: ->
-    return if @wasDestroyed
+  markerWasDestroyed: ->
+    return if @destroyed
     @subscriptions.dispose()
     {@marker, @color, @text, @colorBuffer} = {}
-    @wasDestroyed = true
+    @destroyed = true
 
   match: (properties) ->
-    return false if @wasDestroyed
+    return false if @destroyed
 
     bool = true
 

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()

    bool

  serialize: ->
    return if @destroyed
    out = {
      markerId: String(@marker.id)
      bufferRange: @marker.getBufferRange().serialize()
