Turn on collection update validation by default (#2174)

This commit is contained in:
Adlai Holler
2016-08-31 22:20:23 -07:00
committed by GitHub
parent 0c5288d033
commit 6db9bf39f1
2 changed files with 2 additions and 3 deletions

View File

@@ -28,8 +28,7 @@ ASDISPLAYNODE_EXTERN_C_END
* Note that even if AsyncDisplayKit's exception is suppressed, the app may still crash * Note that even if AsyncDisplayKit's exception is suppressed, the app may still crash
* as it proceeds with an invalid update. * as it proceeds with an invalid update.
* *
* This currently defaults to YES. In a future release it will default to NO and later * This property defaults to NO. It will be removed in a future release.
* be removed entirely.
*/ */
+ (BOOL)suppressesInvalidCollectionUpdateExceptions; + (BOOL)suppressesInvalidCollectionUpdateExceptions;
+ (void)setSuppressesInvalidCollectionUpdateExceptions:(BOOL)suppresses; + (void)setSuppressesInvalidCollectionUpdateExceptions:(BOOL)suppresses;

View File

@@ -77,7 +77,7 @@ NSString * const ASRenderingEngineDidDisplayNodesScheduledBeforeTimestamp = @"AS
@synthesize isFinalLayoutable = _isFinalLayoutable; @synthesize isFinalLayoutable = _isFinalLayoutable;
@synthesize threadSafeBounds = _threadSafeBounds; @synthesize threadSafeBounds = _threadSafeBounds;
static BOOL suppressesInvalidCollectionUpdateExceptions = YES; static BOOL suppressesInvalidCollectionUpdateExceptions = NO;
+ (BOOL)suppressesInvalidCollectionUpdateExceptions + (BOOL)suppressesInvalidCollectionUpdateExceptions
{ {