diff --git a/AsyncDisplayKit/Details/ASRangeHandlerRender.mm b/AsyncDisplayKit/Details/ASRangeHandlerRender.mm index 6dcf11044d..af05d29cc0 100644 --- a/AsyncDisplayKit/Details/ASRangeHandlerRender.mm +++ b/AsyncDisplayKit/Details/ASRangeHandlerRender.mm @@ -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. @@ -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 {