Remove unnecessary/odd addEventListener in Term component unmount hook (#242)

This commit is contained in:
Jason Miller 2016-07-18 12:44:01 -04:00 committed by Guillermo Rauch
parent d3736a36aa
commit 08fc3311f9

View file

@ -162,8 +162,6 @@ export default class Term extends Component {
}
componentWillUnmount () {
const iframeWindow = this.getTermDocument().defaultView;
iframeWindow.addEventListener('wheel', this.onWheel);
clearTimeout(this.scrollbarsHideTimer);
this.props.ref_(null);
}