mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Remove the EditorView when Editor is destroyed
This commit is contained in:
@@ -827,6 +827,9 @@ class EditorView extends View
|
||||
|
||||
@editor.setVisible(true)
|
||||
|
||||
@editor.on "destroyed", =>
|
||||
@remove()
|
||||
|
||||
@editor.on "contents-conflicted.editor", =>
|
||||
@showBufferConflictAlert(@editor)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user