Fix comment linting errors.
Stop listening and cleanup endpoints correctly.
This commit is contained in:
parent
7b59774b34
commit
7660176079
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue