Merge branch 'master' into releases/p6.10

This commit is contained in:
Hannah Trosi
2016-08-15 17:28:53 -07:00
3 changed files with 10 additions and 4 deletions

View File

@@ -893,8 +893,14 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
*/
- (void)animateLayoutTransition:(id<ASContextTransitioning>)context
{
if ([context isAnimated] == NO) {
[self __layoutSublayouts];
[context completeTransition:YES];
return;
}
ASDisplayNode *node = self;
NSAssert(node.isNodeLoaded == YES, @"Invalid node state");
NSAssert([context isAnimated] == YES, @"Can't animate a non-animatable context");

View File

@@ -63,7 +63,8 @@
[super didLoad];
ASCollectionView *cv = self.view;
cv.asyncDelegate = self;
cv.asyncDataSource = _proxyDataSource ?: self;
cv.asyncDelegate = _proxyDelegate ?: self;
#if TARGET_OS_IOS
cv.pagingEnabled = YES;
cv.scrollsToTop = NO;

View File

@@ -91,8 +91,7 @@
selector == @selector(collectionView:nodeForItemAtIndexPath:) ||
selector == @selector(collectionView:nodeBlockForItemAtIndexPath:) ||
selector == @selector(collectionView:numberOfItemsInSection:) ||
selector == @selector(collectionView:constrainedSizeForNodeAtIndexPath:) ||
selector == @selector(scrollViewWillEndDragging:withVelocity:targetContentOffset:)
selector == @selector(collectionView:constrainedSizeForNodeAtIndexPath:)
);
}