   #
   # * `newProperties` {Object} eg. `{type: 'gutter', class: 'my-new-class'}`
   setProperties: (newProperties) ->
-    return if @isDestroyed
+    return if @destroyed
     oldProperties = @properties
     @properties = newProperties
     @properties.id = @id

    @id = nextId()
    @properties.id = @id
    @flashQueue = null
    @isDestroyed = false

    @markerDestroyDisposable = @marker.onDidDestroy => @destroy()


  # If you own the marker, you should use {Marker::destroy} which will destroy
  # this decoration.
  destroy: ->
    return if @destroyed
    @markerDestroyDisposable.dispose()
    @markerDestroyDisposable = null
    @destroyed = true
    @emit 'destroyed'
    @emitter.emit 'did-destroy'
    @emitter.dispose()
