Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
detachTrackHandlers() {
const bar = this.trackBar;
removeListener(bar, 'up', this.upHandler);
removeListener(bar, 'down', this.downHandler);
removeListener(bar, 'track', this.trackHandler);
this.removeEventListener('keydown', this.keyHandler);
}
onUp() {
private detachTrackHandlers() {
const bar = this.trackBar!;
removeListener(bar, 'up', this.upHandler);
removeListener(bar, 'down', this.downHandler);
removeListener(bar, 'track', this.trackHandler);
this.removeEventListener('keydown', this.keyHandler);
}
disconnectedCallback() {
super.disconnectedCallback();
window.removeEventListener('_formReset', this._handleReset, true);
Gestures.removeListener(this.$.body, 'track', this._handleTrack);
this.$.slot.removeEventListener('click', this.show);
this.$.mask.removeEventListener('click', this.hide);
this.$.cancel.removeEventListener('click', this.hide);
this.$.confirm.removeEventListener('click', this.confirm);
}
detachTrackHandlers() {
const bar = this.trackBar;
removeListener(bar, 'up', this.upHandler);
removeListener(bar, 'down', this.downHandler);
removeListener(bar, 'track', this.trackHandler);
this.removeEventListener('keydown', this.keyHandler);
}
onUp() {
private detachTrackHandlers() {
const bar = this.trackBar!;
removeListener(bar, 'up', this.upHandler);
removeListener(bar, 'down', this.downHandler);
removeListener(bar, 'track', this.trackHandler);
this.removeEventListener('keydown', this.keyHandler);
}
disconnectedCallback() {
super.disconnectedCallback();
Gestures.removeListener(this.$.handle, 'track', this._handleTrack);
window.removeEventListener('_formReset', this.handleReset, true);
}
private detachTrackHandlers() {
const bar = this.trackBar!;
removeListener(bar, 'up', this.upHandler);
removeListener(bar, 'down', this.downHandler);
removeListener(bar, 'track', this.trackHandler);
this.removeEventListener('keydown', this.keyHandler);
}
if (!this.circular && this.current === 0) {
this._revert();
} else {
this._prev();
}
} else {
this._revert();
}
if (this.autoplay) {
setTimeout(() => {
this._activeAutoplay();
}, this.duration);
}
Gestures.removeListener(document.documentElement, 'track', this._handleGlobalTrack);
};