Skip to content

Commit f8b1b8e

Browse files
author
Vic
committed
Apply async dont require timeout
Removed timeout
1 parent e9e4de6 commit f8b1b8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui-scroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ angular.module('ui.scroll', [])
356356
let updates = updateDOM();
357357

358358
// We need the item bindings to be processed before we can do adjustment
359-
$scope.$applyAsync(() => $timeout(() => {
359+
$scope.$applyAsync(() => {
360360
// show elements after data binging has been done
361361
updates.inserted.forEach(w => w.element.removeClass('ng-hide'));
362362
updates.prepended.forEach(w => w.element.removeClass('ng-hide'));
@@ -378,7 +378,7 @@ angular.module('ui.scroll', [])
378378
bindEvents();
379379
adapter.calculateProperties();
380380
}
381-
}));
381+
});
382382
}
383383

384384
function fetch(rid) {

0 commit comments

Comments
 (0)