mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Only allow ReactEditorView::beforeRemove to run once
This commit is contained in:
@@ -122,8 +122,9 @@ class ReactEditorView extends View
|
||||
@find('.lines').prepend(view)
|
||||
|
||||
beforeRemove: ->
|
||||
React.unmountComponentAtNode(@element) if @component.isMounted()
|
||||
return unless @attached
|
||||
@attached = false
|
||||
React.unmountComponentAtNode(@element) if @component.isMounted()
|
||||
@trigger 'editor:detached', this
|
||||
|
||||
# Public: Split the editor view left.
|
||||
|
||||
Reference in New Issue
Block a user