From 6db9bf39f18acff2e9692140d2b399dadd78775f Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Wed, 31 Aug 2016 22:20:23 -0700 Subject: [PATCH] Turn on collection update validation by default (#2174) --- AsyncDisplayKit/ASDisplayNode+Beta.h | 3 +-- AsyncDisplayKit/ASDisplayNode.mm | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/AsyncDisplayKit/ASDisplayNode+Beta.h b/AsyncDisplayKit/ASDisplayNode+Beta.h index 9302b9cf2b..ca3e2ff0d1 100644 --- a/AsyncDisplayKit/ASDisplayNode+Beta.h +++ b/AsyncDisplayKit/ASDisplayNode+Beta.h @@ -28,8 +28,7 @@ ASDISPLAYNODE_EXTERN_C_END * Note that even if AsyncDisplayKit's exception is suppressed, the app may still crash * as it proceeds with an invalid update. * - * This currently defaults to YES. In a future release it will default to NO and later - * be removed entirely. + * This property defaults to NO. It will be removed in a future release. */ + (BOOL)suppressesInvalidCollectionUpdateExceptions; + (void)setSuppressesInvalidCollectionUpdateExceptions:(BOOL)suppresses; diff --git a/AsyncDisplayKit/ASDisplayNode.mm b/AsyncDisplayKit/ASDisplayNode.mm index 5a2e862302..c353908628 100644 --- a/AsyncDisplayKit/ASDisplayNode.mm +++ b/AsyncDisplayKit/ASDisplayNode.mm @@ -77,7 +77,7 @@ NSString * const ASRenderingEngineDidDisplayNodesScheduledBeforeTimestamp = @"AS @synthesize isFinalLayoutable = _isFinalLayoutable; @synthesize threadSafeBounds = _threadSafeBounds; -static BOOL suppressesInvalidCollectionUpdateExceptions = YES; +static BOOL suppressesInvalidCollectionUpdateExceptions = NO; + (BOOL)suppressesInvalidCollectionUpdateExceptions {