From f71c04dd2a35d52c749b7a43dfbdbf200ba2b24c Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 7 Mar 2015 14:01:48 -0700 Subject: [PATCH] perf(collectionRepeat): dont wait one frame for initial render --- js/angular/directive/collectionRepeat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/angular/directive/collectionRepeat.js b/js/angular/directive/collectionRepeat.js index 12b21356c4..69e9d5415a 100644 --- a/js/angular/directive/collectionRepeat.js +++ b/js/angular/directive/collectionRepeat.js @@ -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 = []);