mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Add ability to cancel marker head position observations
This commit is contained in:
@@ -53,6 +53,8 @@ class BufferMarker
|
||||
|
||||
observeHeadPosition: (callback) ->
|
||||
@headPositionObservers.push(callback)
|
||||
cancel: =>
|
||||
_.remove(@headPositionObservers, callback)
|
||||
|
||||
tryToInvalidate: (oldRange) ->
|
||||
containsStart = oldRange.containsPoint(@getStartPosition(), exclusive: true)
|
||||
|
||||
Reference in New Issue
Block a user