Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public componentDidMount() {
super.componentDidMount();
if (this.control) {
this.MDComponent = new MDCToolbar(this.control);
this.MDComponent.listen('MDCToolbar:change', this.onChange);
}
}
componentDidMount() {
this.MDComponent = new MDCToolbar(this.control);
this.MDComponent.listen('MDCToolbar:change', this._onChange);
}
componentWillUnmount() {
mounted() {
this.mdcToolbar = new MDCToolbar(this.$el)
},
destroyed() {
componentDidMount() {
this.MDComponent = new _toolbar.MDCToolbar(this.control);
this.MDComponent.listen('MDCToolbar:change', this._onChange);
}