Skip to content

Commit

Permalink
Gate orphaned node detector behind YOGA flag #trivial (TextureGroup#380)
Browse files Browse the repository at this point in the history
* Gate orphaned node detector behind YOGA flag

* Tiny indentation change
  • Loading branch information
nguyenhuy committed Jun 22, 2017
1 parent 4829a86 commit 928bc9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/ASDisplayNode+Layout.mm
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ - (NSString *)asciiArtName
{
NSString *string = NSStringFromClass([self class]);
if (_debugName) {
string = [string stringByAppendingString:[NSString stringWithFormat:@"\"%@\"",_debugName]];
string = [string stringByAppendingString:[NSString stringWithFormat:@"\"%@\"", _debugName]];
}
return string;
}
Expand Down Expand Up @@ -864,7 +864,11 @@ - (void)_assertSubnodeState

- (void)_pendingLayoutTransitionDidComplete
{
// This assertion introduces a breaking behavior for nodes that has ASM enabled but also manually manage some subnodes.
// Let's gate it behind YOGA flag and remove it right after a branch cut.
#if YOGA
[self _assertSubnodeState];
#endif

// Subclass hook
[self calculatedLayoutDidChange];
Expand Down

0 comments on commit 928bc9f

Please sign in to comment.