Remove the EditorView when Editor is destroyed

This commit is contained in:
Nathan Sobo
2014-01-10 11:56:19 -07:00
parent d2146f9b2e
commit d34327a667
2 changed files with 4 additions and 1 deletions

View File

@@ -827,6 +827,9 @@ class EditorView extends View
@editor.setVisible(true)
@editor.on "destroyed", =>
@remove()
@editor.on "contents-conflicted.editor", =>
@showBufferConflictAlert(@editor)