Permalink
Browse files

Merge pull request #253 from sibljon/master

Revert delegate setting related commits
  • Loading branch information...
2 parents 8f6c540 + 475bc25 commit 45c19b8954efc4c6aacd1b09d126cfc8b2df1609 @steipete committed Mar 5, 2013
Showing with 2 additions and 6 deletions.
  1. +2 −6 PSTCollectionView/PSTCollectionView.m
@@ -1283,12 +1283,8 @@ - (void)setCollectionViewLayout:(PSTCollectionViewLayout *)layout {
}
- (void)setDelegate:(id<PSTCollectionViewDelegate>)delegate {
- // We capture the delegate to get access to certain UIScrollView events.
- // 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;
- }
-
+ self.extVars.collectionViewDelegate = delegate;
+
// Managing the Selected Cells
_collectionViewFlags.delegateShouldSelectItemAtIndexPath = [self.delegate respondsToSelector:@selector(collectionView:shouldSelectItemAtIndexPath:)];
_collectionViewFlags.delegateDidSelectItemAtIndexPath = [self.delegate respondsToSelector:@selector(collectionView:didSelectItemAtIndexPath:)];

0 comments on commit 45c19b8

Please sign in to comment.