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

Commit

Permalink
Fix logic error in handling enablement of beta display range.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Goodson committed Dec 31, 2015
1 parent aee7b3b commit 8f914f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AsyncDisplayKit/Details/ASRangeHandlerRender.mm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ - (void)node:(ASDisplayNode *)node enteredRangeOfType:(ASLayoutRangeType)rangeTy
[node enterInterfaceState:ASInterfaceStateDisplay];


if (![ASDisplayNode shouldUseNewRenderingRange]) {
if ([ASDisplayNode shouldUseNewRenderingRange]) {
[node recursivelyEnsureDisplaySynchronously:NO];
} else {
// Add the node's layer to an off-screen window to trigger display and mark its contents as non-volatile.
Expand Down Expand Up @@ -101,7 +101,7 @@ - (void)node:(ASDisplayNode *)node exitedRangeOfType:(ASLayoutRangeType)rangeTyp
// The node calls clearCurrentContents and suspends display
[node exitInterfaceState:ASInterfaceStateDisplay];

if (![ASDisplayNode shouldUseNewRenderingRange]) {
if ([ASDisplayNode shouldUseNewRenderingRange]) {
if (![node isLayerBacked]) {
[node.view removeFromSuperview];
} else {
Expand Down

0 comments on commit 8f914f8

Please sign in to comment.