mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04: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