Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
stop() {
/* istanbul ignore if: not supported by any browsers on Travis */
if (this._oldScrollRestoration) {
window.history.scrollRestoration = this._oldScrollRestoration;
}
off(window, 'scroll', this._onWindowScroll);
this._cancelCheckWindowScroll();
this._unlistenBefore();
}
remove() {
removeEventListener(node, event, handler, options);
},
};
removeEventListeners() {
const { event } = this.props;
const doc = ownerDocument(ReactDOM.findDOMNode(this));
removeEventListener(doc, event, this.handleMouseCapture, true);
removeEventListener(doc, event, this.handleMouse);
removeEventListener(doc, 'keyup', this.handleKeyUp);
}
componentWillUnmount() {
eventsOff(window, 'resize', this.debounceFixLayout);
this.initTimeout && clearTimeout(this.initTimeout);
this.debounceFixLayout && this.debounceFixLayout.cancel();
}
function done(event) {
if (event.target !== event.currentTarget) return
fired = true
off(event.target, transitionProps.end, done)
css(node, reset)
callback && callback.call(this)
}
}
remove() {
removeEventListener(node, event, handler, capture);
}
};