Skip to content

Commit f9e7dcd

Browse files
committed
refactor(infinite-scroll): removing unneeded class property
1 parent 76c10c9 commit f9e7dcd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/src/components/infinite-scroll/infinite-scroll.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export class InfiniteScroll implements ComponentInterface {
1616
private thrPx = 0;
1717
private thrPc = 0;
1818
private scrollEl?: HTMLElement;
19-
private contentEl: HTMLElement | null = null;
2019

2120
/**
2221
* didFire exists so that ionInfinite
@@ -97,12 +96,12 @@ export class InfiniteScroll implements ComponentInterface {
9796
@Event() ionInfinite!: EventEmitter<void>;
9897

9998
async connectedCallback() {
100-
this.contentEl = findClosestIonContent(this.el);
101-
if (!this.contentEl) {
99+
const contentEl = findClosestIonContent(this.el);
100+
if (!contentEl) {
102101
printIonContentErrorMsg(this.el);
103102
return;
104103
}
105-
this.scrollEl = await getScrollElement(this.contentEl);
104+
this.scrollEl = await getScrollElement(contentEl);
106105
this.thresholdChanged();
107106
this.disabledChanged();
108107
if (this.position === 'top') {

0 commit comments

Comments
 (0)