mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Assert the liveness of editor model when attaching editor view
This commit is contained in:
parent
8bad01ca5b
commit
1dd1770b1a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user