Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

[ASPagerNode] Fix methods from ASCollectionDelegate are not passed through to pager delegate #2074

Merged
merged 1 commit into from
Aug 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion AsyncDisplayKit/ASPagerNode.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ - (void)didLoad
[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;
Expand Down
3 changes: 1 addition & 2 deletions AsyncDisplayKit/Details/ASDelegateProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ - (BOOL)interceptsSelector:(SEL)selector
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:)
);
}

Expand Down