Null out component when editor is destroyed to minimize leaks

Signed-off-by: Nathan Sobo <nathan@github.com>
This commit is contained in:
Antonio Scandurra
2017-05-09 18:24:24 +02:00
committed by Nathan Sobo
parent be2aaa0b22
commit ca3395b1b2

View File

@@ -478,7 +478,9 @@ class TextEditor extends Model
@gutterContainer.destroy()
@emitter.emit 'did-destroy'
@emitter.clear()
@editorElement = null
@component?.element.component = null
@component = null
@lineNumberGutter.element = null
###
Section: Event Subscription