Check flag correctly

This commit is contained in:
Adlai Holler
2016-09-13 22:07:55 -07:00
parent 0f2e84572e
commit 1e26519152

View File

@@ -358,7 +358,7 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
_asyncDataSourceFlags.asyncDataSourceNodeBlockForItemAtIndexPath = [_asyncDataSource respondsToSelector:@selector(collectionView:nodeBlockForItemAtIndexPath:)];
_asyncDataSourceFlags.asyncDataSourceNumberOfSectionsInCollectionView = [_asyncDataSource respondsToSelector:@selector(numberOfSectionsInCollectionView:)];
_asyncDataSourceFlags.asyncDataSourceCanMoveItemAtIndexPath = [_asyncDataSource respondsToSelector:@selector(collectionView:canMoveItemAtIndexPath:)];
_asyncDataSourceFlags.asyncDataSourceMoveItemAtIndexPath = [_asyncDelegate respondsToSelector:@selector(collectionView:moveItemAtIndexPath:toIndexPath:)];
_asyncDataSourceFlags.asyncDataSourceMoveItemAtIndexPath = [_asyncDataSource respondsToSelector:@selector(collectionView:moveItemAtIndexPath:toIndexPath:)];
// Data-source must implement collectionView:nodeForItemAtIndexPath: or collectionView:nodeBlockForItemAtIndexPath:
ASDisplayNodeAssertTrue(_asyncDataSourceFlags.asyncDataSourceNodeBlockForItemAtIndexPath || _asyncDataSourceFlags.asyncDataSourceNodeForItemAtIndexPath);