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

    bool

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

    out

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

    try
