Revert "ASDataController now handles reloadData more efficiently and notify its delegate once instead of a series of deletes and inserts"

This reverts commit 2e4d716e0b.

Possible issue with this commit.
This commit is contained in:
Scott Goodson
2016-01-22 20:33:33 -08:00
parent cb5e5704e2
commit 83aaa4637e
8 changed files with 36 additions and 179 deletions

View File

@@ -55,7 +55,7 @@
- (void)willReloadData
{
[_pendingNodes enumerateKeysAndObjectsUsingBlock:^(NSString *kind, NSMutableArray *nodes, BOOL *stop) {
[_pendingNodes enumerateKeysAndObjectsUsingBlock:^(NSString *kind, NSMutableArray *nodes, BOOL *stop) {
// Remove everything that existed before the reload, now that we're ready to insert replacements
NSArray *indexPaths = [self indexPathsForEditingNodesOfKind:kind];
[self deleteNodesOfKind:kind atIndexPaths:indexPaths completion:nil];