File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -305,8 +305,8 @@ angular.module('ui.scroll', [])
305
305
if ( ! updates || buffer . effectiveHeight ( updates . inserted ) > 0 ) {
306
306
// this means that at least one item appended in the last batch has height > 0
307
307
if ( pending . push ( true ) === 1 ) {
308
- fetch ( rid ) ;
309
308
adapter . loading ( true ) ;
309
+ fetch ( rid ) ;
310
310
}
311
311
}
312
312
} else if ( viewport . shouldLoadTop ( ) ) {
@@ -315,8 +315,8 @@ angular.module('ui.scroll', [])
315
315
// pending[0] = true means that previous fetch was appending. We need to force at least one prepend
316
316
// BTW there will always be at least 1 element in the pending array because bottom is fetched first
317
317
if ( pending . push ( false ) === 1 ) {
318
- fetch ( rid ) ;
319
318
adapter . loading ( true ) ;
319
+ fetch ( rid ) ;
320
320
}
321
321
}
322
322
}
You can’t perform that action at this time.
0 commit comments