mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Emit editor:will-be-removed event when unmounting the React editor
This commit is contained in:
@@ -182,6 +182,7 @@ EditorComponent = React.createClass
|
||||
@measureScrollbars()
|
||||
|
||||
componentWillUnmount: ->
|
||||
@props.parentView.trigger 'editor:will-be-removed', [@props.parentView]
|
||||
@unsubscribe()
|
||||
clearInterval(@scrollViewMeasurementIntervalId)
|
||||
@scrollViewMeasurementIntervalId = null
|
||||
|
||||
Reference in New Issue
Block a user