Skip to content

Commit

Permalink
Merge pull request #253 from sibljon/master
Browse files Browse the repository at this point in the history
Revert delegate setting related commits
  • Loading branch information
steipete committed Mar 5, 2013
2 parents 8f6c540 + 475bc25 commit 45c19b8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions PSTCollectionView/PSTCollectionView.m
Expand Up @@ -1283,12 +1283,8 @@ - (void)setCollectionViewLayout:(PSTCollectionViewLayout *)layout {
} }


- (void)setDelegate:(id<PSTCollectionViewDelegate>)delegate { - (void)setDelegate:(id<PSTCollectionViewDelegate>)delegate {
// We capture the delegate to get access to certain UIScrollView events. self.extVars.collectionViewDelegate = delegate;
// That's not needed when we are our own delegate (as long as parent behaves and properly calls super)
if (self.extVars.collectionViewDelegate != (id)self) {
self.extVars.collectionViewDelegate = delegate;
}

// Managing the Selected Cells // Managing the Selected Cells
_collectionViewFlags.delegateShouldSelectItemAtIndexPath = [self.delegate respondsToSelector:@selector(collectionView:shouldSelectItemAtIndexPath:)]; _collectionViewFlags.delegateShouldSelectItemAtIndexPath = [self.delegate respondsToSelector:@selector(collectionView:shouldSelectItemAtIndexPath:)];
_collectionViewFlags.delegateDidSelectItemAtIndexPath = [self.delegate respondsToSelector:@selector(collectionView:didSelectItemAtIndexPath:)]; _collectionViewFlags.delegateDidSelectItemAtIndexPath = [self.delegate respondsToSelector:@selector(collectionView:didSelectItemAtIndexPath:)];
Expand Down

0 comments on commit 45c19b8

Please sign in to comment.