Replace marker 'observe' methods w/ ordinary 'changed' event

This commit is contained in:
Nathan Sobo
2013-04-29 19:14:48 -06:00
parent 4ca00f7347
commit 51e915c423
7 changed files with 74 additions and 114 deletions

View File

@@ -153,15 +153,6 @@ class BufferMarker
containsPoint: (point) ->
@getRange().containsPoint(point)
# Public: Sets a callback to be fired whenever a marker is changed.
observe: (callback) ->
@on 'changed', callback
cancel: => @unobserve(callback)
# Public: Removes the fired callback whenever a marker changes.
unobserve: (callback) ->
@off 'changed', callback
# Destroys the marker
destroy: ->
@buffer.destroyMarker(@id)