mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
chore(many): replace any types and add tech debt tickets (#26293)
Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
This commit is contained in:
@ -28,8 +28,8 @@ export class PickerColumnCmp implements ComponentInterface {
|
||||
private y = 0;
|
||||
private optsEl?: HTMLElement;
|
||||
private gesture?: Gesture;
|
||||
private rafId: any;
|
||||
private tmrId: any;
|
||||
private rafId?: ReturnType<typeof requestAnimationFrame>;
|
||||
private tmrId?: ReturnType<typeof setTimeout>;
|
||||
private noAnimate = true;
|
||||
|
||||
@Element() el!: HTMLElement;
|
||||
@ -90,8 +90,8 @@ export class PickerColumnCmp implements ComponentInterface {
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
cancelAnimationFrame(this.rafId);
|
||||
clearTimeout(this.tmrId);
|
||||
if (this.rafId !== undefined) cancelAnimationFrame(this.rafId);
|
||||
if (this.tmrId) clearTimeout(this.tmrId);
|
||||
if (this.gesture) {
|
||||
this.gesture.destroy();
|
||||
this.gesture = undefined;
|
||||
@ -110,7 +110,7 @@ export class PickerColumnCmp implements ComponentInterface {
|
||||
this.velocity = 0;
|
||||
|
||||
// set what y position we're at
|
||||
cancelAnimationFrame(this.rafId);
|
||||
if (this.rafId !== undefined) cancelAnimationFrame(this.rafId);
|
||||
this.update(y, duration, true);
|
||||
|
||||
this.emitColChange();
|
||||
@ -251,7 +251,7 @@ export class PickerColumnCmp implements ComponentInterface {
|
||||
hapticSelectionStart();
|
||||
|
||||
// reset everything
|
||||
cancelAnimationFrame(this.rafId);
|
||||
if (this.rafId !== undefined) cancelAnimationFrame(this.rafId);
|
||||
const options = this.col.options;
|
||||
let minY = options.length - 1;
|
||||
let maxY = 0;
|
||||
|
||||
Reference in New Issue
Block a user