     return @flashQueue.shift() if @flashQueue?.length > 0
     null
 
-  on: (eventName) ->
+if Grim.includeDeprecations
+  EmitterMixin.includeInto(Decoration)
+
+  Decoration::on = (eventName) ->
     switch eventName
       when 'updated'
         Grim.deprecate 'Use Decoration::onDidChangeProperties instead'

# the marker.
module.exports =
class Decoration
  EmitterMixin.includeInto(this)

  # Private: Check if the `decorationProperties.type` matches `type`
  #

        Grim.deprecate 'Decoration::on is deprecated. Use event subscription methods instead.'

    EmitterMixin::on.apply(this, arguments)

  Decoration::getParams = ->
    Grim.deprecate 'Use Decoration::getProperties instead'
    @getProperties()

  Decoration::update = -> (newProperties) ->
    Grim.deprecate 'Use Decoration::setProperties instead'
    @setProperties(newProperties)
