mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Fix Decoration events
This commit is contained in:
@@ -29,11 +29,17 @@ nextId = -> idCounter++
|
||||
#
|
||||
# ## Events
|
||||
#
|
||||
# A couple of events are emitted:
|
||||
# ### updated
|
||||
#
|
||||
# * `destroyed`: When the {Decoration} is destroyed
|
||||
# * `updated`: When the {Decoration} is updated via {Decoration::update}.
|
||||
# Event object has properties `oldParams` and `newParams`
|
||||
# Extended: When the {Decoration} is updated via {Decoration::update}.
|
||||
#
|
||||
# * `event` {Object}
|
||||
# * `oldParams` {Object} the old parameters the decoration used to have
|
||||
# * `newParams` {Object} the new parameters the decoration now has
|
||||
#
|
||||
# ### destroyed
|
||||
#
|
||||
# Extended: When the {Decoration} is destroyed
|
||||
#
|
||||
module.exports =
|
||||
class Decoration
|
||||
|
||||
Reference in New Issue
Block a user