We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f34f5c6 commit e347e66Copy full SHA for e347e66
src/components/InfiniteLoading.vue
@@ -118,7 +118,7 @@
118
if (!this.isLoading) {
119
clearTimeout(this.debounceTimer);
120
121
- if (typeof ev === 'object' && ev.constructor === Event) {
+ if (ev && ev.constructor === Event) {
122
this.debounceTimer = setTimeout(this.attemptLoad, this.debounceDuration);
123
} else {
124
this.attemptLoad();
@@ -155,7 +155,7 @@
155
setTimeout(this.scrollHandler, 1);
156
});
157
158
- if (typeof this.onInfinite === 'function') {
+ if (this.onInfinite) {
159
console.warn('[Vue-infinite-loading warn]: `:on-infinite` property will be deprecated soon, please use `@infinite` event instead.');
160
}
161
},
0 commit comments