mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
perf(collectionRepeat): dont wait one frame for initial render
This commit is contained in:
2
js/angular/directive/collectionRepeat.js
vendored
2
js/angular/directive/collectionRepeat.js
vendored
@@ -145,7 +145,7 @@ function CollectionRepeatDirective($ionicCollectionManager, $parse, $window, $$r
|
||||
|
||||
// Dimensions are refreshed on resize or data change.
|
||||
angular.element($window).on('resize', debouncedOnResize);
|
||||
$timeout(debouncedRefreshDimensions, 0, false);
|
||||
$timeout(refreshDimensions, 0, false);
|
||||
|
||||
scope.$watchCollection(listGetter, function(newValue) {
|
||||
data = newValue || (newValue = []);
|
||||
|
||||
Reference in New Issue
Block a user