Skip to content

Commit

Permalink
perf(collectionRepeat): dont wait one frame for initial render
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Mar 7, 2015
1 parent 4325025 commit f71c04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/directive/collectionRepeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []);
Expand Down

0 comments on commit f71c04d

Please sign in to comment.