Merge pull request #1302 from nguyenhuy/fix_collection_data_controller

[ASCollectionDataController] Remove unncessary batch layout calls for supplementary nodes.
This commit is contained in:
appleguy
2016-03-01 18:16:27 -08:00

View File

@@ -46,9 +46,6 @@
NSMutableArray<ASIndexedNodeContext *> *contexts = [NSMutableArray array];
[self _populateSupplementaryNodesOfKind:kind withMutableContexts:contexts];
_pendingContexts[kind] = contexts;
// Measure loaded nodes before leaving the main thread
[self batchLayoutNodesFromContexts:contexts ofKind:kind completion:nil];
}
}
@@ -85,9 +82,6 @@
NSMutableArray<ASIndexedNodeContext *> *contexts = [NSMutableArray array];
[self _populateSupplementaryNodesOfKind:kind withSections:sections mutableContexts:contexts];
_pendingContexts[kind] = contexts;
// Measure loaded nodes before leaving the main thread
[self batchLayoutNodesFromContexts:contexts ofKind:kind completion:nil];
}
}
@@ -123,9 +117,6 @@
NSMutableArray<ASIndexedNodeContext *> *contexts = [NSMutableArray array];
[self _populateSupplementaryNodesOfKind:kind withSections:sections mutableContexts:contexts];
_pendingContexts[kind] = contexts;
// Measure loaded nodes before leaving the main thread
[self batchLayoutNodesFromContexts:contexts ofKind:kind completion:nil];
}
}