Skip to content

Commit

Permalink
Store a copy of the accessibilityElementsBlock passed
Browse files Browse the repository at this point in the history
  • Loading branch information
raycsh017 committed May 28, 2019
1 parent bfa4f00 commit 2303d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ASDisplayNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3515,7 +3515,7 @@ - (BOOL)isAccessibilityContainer
- (void)setAccessibilityElementsBlock:(ASDisplayNodeAccessibilityElementsBlock)accessibilityElementsBlock
{
MutexLocker l(__instanceLock__);
_accessibilityElementsBlock = accessibilityElementsBlock;
_accessibilityElementsBlock = [accessibilityElementsBlock copy];
}

- (ASDisplayNodeAccessibilityElementsBlock)accessibilityElementsBlock
Expand Down

0 comments on commit 2303d1d

Please sign in to comment.