mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-29 08:39:00 +08:00
Merge pull request #1302 from nguyenhuy/fix_collection_data_controller
[ASCollectionDataController] Remove unncessary batch layout calls for supplementary nodes.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user