Update docs in decoration

This commit is contained in:
Ben Ogle
2014-09-16 10:48:13 -07:00
parent d349ec55f9
commit e01d96862f

View File

@@ -32,7 +32,7 @@ module.exports =
class Decoration
EmitterMixin.includeInto(this)
# Extended: Check if the `decorationProperties.type` matches `type`
# Private: Check if the `decorationProperties.type` matches `type`
#
# * `decorationProperties` {Object} eg. `{type: 'gutter', class: 'my-new-class'}`
# * `type` {String} type like `'gutter'`, `'line'`, etc. `type` can also
@@ -46,6 +46,10 @@ class Decoration
else
type is decorationProperties.type
###
Section: Construction and Destruction
###
constructor: (@marker, @displayBuffer, @properties) ->
@emitter = new Emitter
@id = nextId()