mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04: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