Emit editor:will-be-removed event when unmounting the React editor

This commit is contained in:
Nathan Sobo
2014-07-08 21:29:53 -06:00
parent 6fe05064eb
commit 6a2021ac98

View File

@@ -182,6 +182,7 @@ EditorComponent = React.createClass
@measureScrollbars()
componentWillUnmount: ->
@props.parentView.trigger 'editor:will-be-removed', [@props.parentView]
@unsubscribe()
clearInterval(@scrollViewMeasurementIntervalId)
@scrollViewMeasurementIntervalId = null