mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Assert the liveness of editor model when attaching editor view
This commit is contained in:
@@ -62,6 +62,7 @@ class TextEditorElement extends HTMLElement
|
||||
|
||||
attachedCallback: ->
|
||||
@buildModel() unless @getModel()?
|
||||
atom.assert(@model.isAlive(), "Attaching a view for a destroyed editor")
|
||||
@mountComponent() unless @component?
|
||||
@component.checkForVisibilityChange()
|
||||
if this is document.activeElement
|
||||
|
||||
Reference in New Issue
Block a user