mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Kill anchor subscriptions on destroy
This commit is contained in:
@@ -62,6 +62,7 @@ class Anchor
|
||||
@setScreenPosition(screenPosition, bufferChange: options.bufferChange, clip: false, assignBufferPosition: false)
|
||||
|
||||
destroy: ->
|
||||
@off()
|
||||
@editSession.removeAnchor(this)
|
||||
|
||||
_.extend(Anchor.prototype, EventEmitter)
|
||||
|
||||
Reference in New Issue
Block a user