1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

Fix comment linting errors.

Stop listening and cleanup endpoints correctly.
This commit is contained in:
Richard Lewis
2017-12-28 22:27:12 +00:00
parent 7b59774b34
commit 7660176079

View File

@@ -227,8 +227,8 @@ export default React.createClass({
}, },
componentWillUnmount() { componentWillUnmount() {
WidgetMessaging.stopListening(); this.widgetMessaging.stopListening();
WidgetMessaging.removeEndpoint(this.props.id, this.props.url); this.widgetMessaging.removeEndpoint(this.props.id, this.props.url);
window.removeEventListener('message', this._onMessage); window.removeEventListener('message', this._onMessage);
}, },