mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-01-12 22:44:08 +08:00
[ASDisplayNode] Optimize pendingDisplayNodes check using isEmpty (ASWeakSet).
This commit is contained in:
@@ -2247,7 +2247,7 @@ static NSInteger incrementIfFound(NSInteger i) {
|
||||
|
||||
[_pendingDisplayNodes removeObject:node];
|
||||
|
||||
if (_pendingDisplayNodes.count == 0) {
|
||||
if (_pendingDisplayNodes.isEmpty) {
|
||||
[self hierarchyDisplayDidFinish];
|
||||
|
||||
if (_placeholderLayer.superlayer && ![self placeholderShouldPersist]) {
|
||||
|
||||
Reference in New Issue
Block a user