Skip to content

Commit 1c3b379

Browse files
authored
docs(infinite-scroll): use proper equality check (#24767)
1 parent 8246112 commit 1c3b379

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

core/src/components/infinite-scroll/readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

core/src/components/infinite-scroll/usage/angular.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class InfiniteScrollExample {
3636

3737
// App logic to determine if all data is loaded
3838
// and disable the infinite scroll
39-
if (data.length == 1000) {
39+
if (data.length === 1000) {
4040
event.target.disabled = true;
4141
}
4242
}, 500);

core/src/components/infinite-scroll/usage/javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ infiniteScroll.addEventListener('ionInfinite', function(event) {
2525

2626
// App logic to determine if all data is loaded
2727
// and disable the infinite scroll
28-
if (data.length == 1000) {
28+
if (data.length === 1000) {
2929
event.target.disabled = true;
3030
}
3131
}, 500);

core/src/components/infinite-scroll/usage/react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const InfiniteScrollExample: React.FC = () => {
3737
pushData();
3838
console.log('Loaded data');
3939
ev.target.complete();
40-
if (data.length == 1000) {
40+
if (data.length === 1000) {
4141
setInfiniteDisabled(true);
4242
}
4343
}, 500);

core/src/components/infinite-scroll/usage/stencil.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class InfiniteScrollExample {
3838

3939
// App logic to determine if all data is loaded
4040
// and disable the infinite scroll
41-
if (this.data.length == 1000) {
41+
if (this.data.length === 1000) {
4242
ev.target.disabled = true;
4343
}
4444
}, 500);

core/src/components/infinite-scroll/usage/vue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default defineComponent({
7373
7474
// App logic to determine if all data is loaded
7575
// and disable the infinite scroll
76-
if (items.value.length == 1000) {
76+
if (items.value.length === 1000) {
7777
ev.target.disabled = true;
7878
}
7979
}, 500);

0 commit comments

Comments
 (0)