File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -146,18 +146,20 @@ export default {
146
146
this .scrollParent = this .getScrollParent ();
147
147
}, { immediate: true });
148
148
149
- this .scrollHandler = function scrollHandlerOriginal (ev ) {
149
+ this .scrollHandler = (ev ) => {
150
150
if (this .status === STATUS .READY ) {
151
151
if (ev && ev .constructor === Event && isVisible (this .$el )) {
152
152
throttleer .throttle (this .attemptLoad );
153
153
} else {
154
154
this .attemptLoad ();
155
155
}
156
156
}
157
- }. bind ( this ) ;
157
+ };
158
158
159
- setTimeout (this .scrollHandler , 1 );
160
- this .scrollParent .addEventListener (' scroll' , this .scrollHandler , evt3rdArg);
159
+ setTimeout (() => {
160
+ this .scrollHandler ();
161
+ this .scrollParent .addEventListener (' scroll' , this .scrollHandler , evt3rdArg);
162
+ }, 1 );
161
163
162
164
this .$on (' $InfiniteLoading:loaded' , (ev ) => {
163
165
this .isFirstLoad = false ;
You can’t perform that action at this time.
0 commit comments