ASPagerNode's api was not updated while addressing comments on the initial

ASCellNode background allocation PR. This change fixes that issue.
This commit is contained in:
Rahul Malik 2016-02-05 15:09:08 -08:00
parent 8abda67d1a
commit 6c240a2fce
3 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@
return pageNode; return pageNode;
} }
- (ASCellNodeBlock)collectionView:(ASCollectionView *)collectionView nodeBlockAtIndexPath:(NSIndexPath *)indexPath - (ASCellNodeBlock)collectionView:(ASCollectionView *)collectionView nodeBlockForItemAtIndexPath:(NSIndexPath *)indexPath
{ {
ASDisplayNodeAssert(_pagerDataSource != nil, @"ASPagerNode must have a data source to load nodes to display"); ASDisplayNodeAssert(_pagerDataSource != nil, @"ASPagerNode must have a data source to load nodes to display");
if (!_pagerDataSourceImplementsNodeBlockAtIndex) { if (!_pagerDataSourceImplementsNodeBlockAtIndex) {

View File

@ -25,7 +25,7 @@
return [[ASCellNode alloc] init]; return [[ASCellNode alloc] init];
} }
- (ASCellNodeBlock)collectionView:(ASCollectionView *)collectionView nodeBlockAtIndexPath:(NSIndexPath *)indexPath - (ASCellNodeBlock)collectionView:(ASCollectionView *)collectionView nodeBlockForItemAtIndexPath:(NSIndexPath *)indexPath
{ {
return ^{ return [[ASCellNode alloc] init]; }; return ^{ return [[ASCellNode alloc] init]; };
} }

View File

@ -36,7 +36,7 @@
} }
- (ASCellNodeBlock)collectionView:(ASCollectionView *)collectionView nodeBlockAtIndexPath:(NSIndexPath *)indexPath { - (ASCellNodeBlock)collectionView:(ASCollectionView *)collectionView nodeBlockForItemAtIndexPath:(NSIndexPath *)indexPath {
return ^{ return ^{
ASTextCellNode *textCellNode = [ASTextCellNode new]; ASTextCellNode *textCellNode = [ASTextCellNode new];
textCellNode.text = indexPath.description; textCellNode.text = indexPath.description;