Browse files

Revert commits related to delegate setting

This reverts the following commits:
- efc4f99 (modify delegate setting)
- bca811f (comment on the modification
that was made)
  • Loading branch information...
1 parent 7af778a commit 475bc25bb01ec8d38e815773d9ff18fee3846146 @sibljon sibljon committed Mar 5, 2013
Showing with 2 additions and 6 deletions.
  1. +2 −6 PSTCollectionView/PSTCollectionView.m
View
8 PSTCollectionView/PSTCollectionView.m
@@ -1220,12 +1220,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 475bc25

Please sign in to comment.