mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Dispose of scoped config subscriptions when TextEditorComponent unmounts
Fixes #3998
This commit is contained in:
@@ -197,6 +197,7 @@ TextEditorComponent = React.createClass
|
||||
|
||||
parentView.__spacePenView.trigger 'editor:will-be-removed', [parentView.__spacePenView]
|
||||
@unsubscribe()
|
||||
@scopedConfigSubscriptions.dispose()
|
||||
window.removeEventListener 'resize', @requestHeightAndWidthMeasurement
|
||||
clearInterval(@domPollingIntervalId)
|
||||
@domPollingIntervalId = null
|
||||
|
||||
Reference in New Issue
Block a user