mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Unsubscribe EditorComponent before unmounting
This commit is contained in:
@@ -78,6 +78,7 @@ EditorComponent = React.createClass
|
||||
@requestUpdate()
|
||||
|
||||
componentWillUnmount: ->
|
||||
@unsubscribe()
|
||||
@getDOMNode().removeEventListener 'mousewheel', @onMouseWheel
|
||||
|
||||
componentWillUpdate: ->
|
||||
|
||||
Reference in New Issue
Block a user