Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Commit

Permalink
Reload operation should not occur if no delegate or datasource is pro…
Browse files Browse the repository at this point in the history
…vided
  • Loading branch information
teonivalois committed Jan 11, 2013
1 parent dbb3af5 commit 3ef169f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SSToolkit/SSCollectionView.m
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ - (void)deleteSections:(NSIndexSet *)sections withItemAnimation:(SSCollectionVie
#pragma mark - Reloading the Collection View

- (void)reloadData {
if (![self superview]) {
if (![self superview] || !_dataSource || !_delegate) {
return;
}

Expand Down

0 comments on commit 3ef169f

Please sign in to comment.