Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit affb786

Browse files
author
Scott Goodson
committed
[ASButtonNode] Pass through setDisplaysAsynchronously: to subnodes (image and title).
1 parent ebfbfab commit affb786

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

AsyncDisplayKit/ASButtonNode.mm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ - (void)setSelected:(BOOL)selected
7272
[self updateTitle];
7373
}
7474

75+
- (void)setDisplaysAsynchronously:(BOOL)displaysAsynchronously
76+
{
77+
[super setDisplaysAsynchronously:displaysAsynchronously];
78+
[self.imageNode setDisplaysAsynchronously:displaysAsynchronously];
79+
[self.titleNode setDisplaysAsynchronously:displaysAsynchronously];
80+
}
81+
7582
- (void)updateImage
7683
{
7784
ASDN::MutexLocker l(_propertyLock);

0 commit comments

Comments
 (0)