Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillUnmount() {
// Remove in event listeners for the container
// Pending; https://github.com/KyleAMathews/element-resize-event/issues/2
if (removeResizeListener) {
removeResizeListener(this.container, this._resizedContainer);
}
// Remove the map instance through the API
if (this._map) {
this._map.remove();
this._map = null;
}
}
return () => elementResizeEvent.unbind(wrapperRef.current);
}, []);
destroyEvent() {
if (this.windowResizeListener) {
this.windowResizeListener.off();
}
if (this.contentElement) {
unbindElementResize(this.contentElement);
}
}
componentWillUnmount() {
if (this.menuElementRef.current) {
unbindElementResize(this.menuElementRef.current);
}
}
updateMenuStyle() {
componentWillUnmount = () => {
unbind(this.refs.container)
}
componentWillUnmount() {
if (this.scrollListener) {
this.scrollListener.off();
}
if (this.containerRef.current) {
unbindElementResize(this.containerRef.current);
}
}
componentWillUnmount() {
this.wheelHandler = null;
if (this.table) {
unbindElementResize(this.table);
}
if (this.wheelListener) {
this.wheelListener.off();
}
if (this.touchStartListener) {
this.touchStartListener.off();
}
if (this.touchMoveListener) {
this.touchMoveListener.off();
}
if (this.scrollListener) {
this.scrollListener.off();
}
componentWillUnmount() {
if (this.table) {
this.xWrapper.removeEventListener('scroll', this.onScrollX);
this.xWrapper.removeEventListener('scroll', this.scrollXScrollbar);
this.xScrollbar.removeEventListener('scroll', this.onScrollBarX);
this.yWrapper.removeEventListener('scroll', this.scrollYScrollbar);
this.yScrollbar.removeEventListener('scroll', this.onScrollBarY);
elementResizeEvent.unbind(this.realTable);
}
}