@@ -69,7 +69,7 @@ export class InfiniteScrollExample {
6969
7070 // App logic to determine if all data is loaded
7171 // and disable the infinite scroll
72- if (data .length == 1000 ) {
72+ if (data .length === 1000 ) {
7373 event .target .disabled = true ;
7474 }
7575 }, 500 );
@@ -111,7 +111,7 @@ infiniteScroll.addEventListener('ionInfinite', function(event) {
111111
112112 // App logic to determine if all data is loaded
113113 // and disable the infinite scroll
114- if (data .length == 1000 ) {
114+ if (data .length === 1000 ) {
115115 event .target .disabled = true ;
116116 }
117117 }, 500 );
@@ -164,7 +164,7 @@ const InfiniteScrollExample: React.FC = () => {
164164 pushData ();
165165 console .log (' Loaded data' );
166166 ev .target .complete ();
167- if (data .length == 1000 ) {
167+ if (data .length === 1000 ) {
168168 setInfiniteDisabled (true );
169169 }
170170 }, 500 );
@@ -263,7 +263,7 @@ export class InfiniteScrollExample {
263263
264264 // App logic to determine if all data is loaded
265265 // and disable the infinite scroll
266- if (this .data .length == 1000 ) {
266+ if (this .data .length === 1000 ) {
267267 ev .target .disabled = true ;
268268 }
269269 }, 500 );
@@ -380,7 +380,7 @@ export default defineComponent({
380380
381381 // App logic to determine if all data is loaded
382382 // and disable the infinite scroll
383- if (items .value .length == 1000 ) {
383+ if (items .value .length === 1000 ) {
384384 ev .target .disabled = true ;
385385 }
386386 }, 500 );
0 commit comments