mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Destroy TextEditorPresenter when unmounting TextEditorComponent
Fixes atom/find-and-replace#348
This commit is contained in:
@@ -149,6 +149,7 @@ TextEditorComponent = React.createClass
|
||||
{editor, hostElement} = @props
|
||||
|
||||
@unsubscribe()
|
||||
@presenter.destroy()
|
||||
@scopedConfigSubscriptions.dispose()
|
||||
window.removeEventListener 'resize', @requestHeightAndWidthMeasurement
|
||||
clearInterval(@domPollingIntervalId)
|
||||
|
||||
Reference in New Issue
Block a user