Fix methods from ASCollectionDelegate are not passed through to pager delegate (#2074)

This commit is contained in:
Michael Schneider
2016-08-15 17:23:39 -07:00
committed by Adlai Holler
parent ee87695fc8
commit 067e4998e2
2 changed files with 3 additions and 3 deletions

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:)
);
}