Kill anchor subscriptions on destroy

This commit is contained in:
Nathan Sobo
2012-06-29 11:55:27 -06:00
parent 3524490946
commit 99db024dbb

View File

@@ -62,6 +62,7 @@ class Anchor
@setScreenPosition(screenPosition, bufferChange: options.bufferChange, clip: false, assignBufferPosition: false)
destroy: ->
@off()
@editSession.removeAnchor(this)
_.extend(Anchor.prototype, EventEmitter)