From 4000433da1b157cce2b0f1c00921aa5b8bf55f02 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Tue, 9 Aug 2016 16:10:21 -0700 Subject: [PATCH] Revert "Fix if pending layout will be deallocated (#2038)" (#2051) This reverts commit 2804d50220dabebc62b088b17d5ffe2347da1e36. --- AsyncDisplayKit/ASDisplayNode.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AsyncDisplayKit/ASDisplayNode.mm b/AsyncDisplayKit/ASDisplayNode.mm index 3589207f..34d298a2 100644 --- a/AsyncDisplayKit/ASDisplayNode.mm +++ b/AsyncDisplayKit/ASDisplayNode.mm @@ -795,9 +795,13 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c) completion(); } + + // Setup pending layout transition for animation _pendingLayoutTransition = [[ASLayoutTransition alloc] initWithNode:self pendingLayout:newLayout previousLayout:previousLayout]; + + // Apply the subnode insertion immediately to be able to animate the nodes [_pendingLayoutTransition applySubnodeInsertions]; _transitionContext = [[_ASTransitionContext alloc] initWithAnimation:animated