-actionForLayer:forKey: of ASDisplayNode should return nil to avoid the node being animated by CA when it's being moved from one supernode to another (#3146)

This reverts commit 1d21c0bd5545741f284e553d7ed003c69fa6897c introduced in #3063.
This commit is contained in:
Huy Nguyen 2017-03-08 14:02:12 +00:00 committed by GitHub
parent cbd8714260
commit 21953c97ef

View File

@ -2312,7 +2312,7 @@ static const char *ASDisplayNodeDrawingPriorityKey = "ASDrawingPriority";
}
ASDisplayNodeAssert(_flags.layerBacked, @"We shouldn't get called back here unless we are layer-backed.");
return nil;
return (id)kCFNull;
}
#pragma mark - Error Handling