Merge pull request #241 from facebook/add_check

Add check for willDeleteSections:
This commit is contained in:
Nadine Salter 2015-01-22 12:38:54 -08:00
commit e1f8342c3b

View File

@ -294,7 +294,9 @@
- (void)dataController:(ASDataController *)dataController willDeleteSectionsAtIndexSet:(NSIndexSet *)indexSet withAnimationOption:(ASDataControllerAnimationOptions)animationOption {
ASDisplayNodePerformBlockOnMainThread(^{
if ([_delegate respondsToSelector:@selector(rangeController:willDeleteSectionsAtIndexSet:withAnimationOption:)]) {
[_delegate rangeController:self willDeleteSectionsAtIndexSet:indexSet withAnimationOption:animationOption];
}
});
}