perf(collectionRepeat): dont wait one frame for initial render

This commit is contained in:
Andrew
2015-03-07 14:01:48 -07:00
parent 4325025deb
commit f71c04dd2a

View File

@@ -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 = []);