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() {
WidgetMessaging.stopListening();
WidgetMessaging.removeEndpoint(this.props.id, this.props.url);
this.widgetMessaging.stopListening();
this.widgetMessaging.removeEndpoint(this.props.id, this.props.url);
window.removeEventListener('message', this._onMessage);
},