mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-28 23:58:50 +08:00
Two more small performance wins
This commit is contained in:
@@ -330,7 +330,7 @@ void _ASEnumerateControlEventsIncludedInMaskWithBlock(ASControlNodeEvent mask, v
|
||||
NSMutableSet *targets = [[NSMutableSet alloc] init];
|
||||
|
||||
// Look at each event...
|
||||
for (NSMapTable *eventDispatchTable in [_controlEventDispatchTable allValues])
|
||||
for (NSMapTable *eventDispatchTable in [_controlEventDispatchTable objectEnumerator])
|
||||
{
|
||||
// and each event's targets...
|
||||
for (id target in eventDispatchTable)
|
||||
|
||||
@@ -302,8 +302,7 @@ static void *ASVideoPlayerNodeContext = &ASVideoPlayerNodeContext;
|
||||
|
||||
- (void)removeControls
|
||||
{
|
||||
NSArray *controls = [_cachedControls allValues];
|
||||
for (ASDisplayNode *node in controls) {
|
||||
for (ASDisplayNode *node in [_cachedControls objectEnumerator]) {
|
||||
[node removeFromSupernode];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user