Skip to content

Commit

Permalink
Remove mutual exclusion check between onSelectCell and onSelectCellFo…
Browse files Browse the repository at this point in the history
…rObjectAtIndexPath block callbacks
  • Loading branch information
Jeff Arena authored and blakewatters committed Feb 10, 2012
1 parent 9e37304 commit 1617dd3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Code/UI/RKAbstractTableController.m
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,11 @@ - (void)tableView:(UITableView*)theTableView didSelectRowAtIndexPath:(NSIndexPat
// TODO: Logging...
cellMapping.onSelectCell();
}
if (! cellMapping.onSelectCellForObjectAtIndexPath) {
RKLogTrace(@"%@: No onSelectCellForObjectAtIndexPath block handler configured on cellMapping %@ for object %@", self, cell, object);
return;
}

RKLogTrace(@"%@: Invoking onSelectCellForObjectAtIndexPath block with cellMapping %@ for object %@ at indexPath = %@", self, cell, object, indexPath);
cellMapping.onSelectCellForObjectAtIndexPath(cell, object, indexPath);
if (cellMapping.onSelectCellForObjectAtIndexPath) {
RKLogTrace(@"%@: Invoking onSelectCellForObjectAtIndexPath block with cellMapping %@ for object %@ at indexPath = %@", self, cell, object, indexPath);
cellMapping.onSelectCellForObjectAtIndexPath(cell, object, indexPath);
}

if (cellMapping.deselectsRowOnSelection) {
[self.tableView deselectRowAtIndexPath:indexPath animated:YES];
Expand Down

0 comments on commit 1617dd3

Please sign in to comment.