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 {
146146 this .scrollParent = this .getScrollParent ();
147147 }, { immediate: true });
148148
149- this .scrollHandler = function scrollHandlerOriginal (ev ) {
149+ this .scrollHandler = (ev ) => {
150150 if (this .status === STATUS .READY ) {
151151 if (ev && ev .constructor === Event && isVisible (this .$el )) {
152152 throttleer .throttle (this .attemptLoad );
153153 } else {
154154 this .attemptLoad ();
155155 }
156156 }
157- }. bind ( this ) ;
157+ };
158158
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 );
161163
162164 this .$on (' $InfiniteLoading:loaded' , (ev ) => {
163165 this .isFirstLoad = false ;
You can’t perform that action at this time.
0 commit comments