mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Replace marker 'observe' methods w/ ordinary 'changed' event
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user