From dcb30b359cbf4a26675bab37fce65769e714bf0c Mon Sep 17 00:00:00 2001 From: Li Tan Date: Wed, 11 Feb 2015 15:22:24 -0800 Subject: [PATCH] rename _batchUpdateFlag to _performingBatchUpdates --- AsyncDisplayKit/ASCollectionView.mm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/AsyncDisplayKit/ASCollectionView.mm b/AsyncDisplayKit/ASCollectionView.mm index 284633aba8..36cc0e2f60 100644 --- a/AsyncDisplayKit/ASCollectionView.mm +++ b/AsyncDisplayKit/ASCollectionView.mm @@ -99,7 +99,7 @@ static BOOL _isInterceptedSelector(SEL sel) ASRangeController *_rangeController; ASFlowLayoutController *_layoutController; - BOOL _batchUpdateFlag; + BOOL _performingBatchUpdates; NSMutableArray *_batchUpdateBlocks; } @@ -131,7 +131,7 @@ static BOOL _isInterceptedSelector(SEL sel) _proxyDelegate = [[_ASCollectionViewProxy alloc] initWithTarget:nil interceptor:self]; super.delegate = (id)_proxyDelegate; - _batchUpdateFlag = NO; + _performingBatchUpdates = NO; _batchUpdateBlocks = [NSMutableArray array]; [self registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"_ASCollectionViewCell"]; @@ -380,7 +380,7 @@ static BOOL _isInterceptedSelector(SEL sel) - (void)rangeControllerBeginUpdates:(ASRangeController *)rangeController { ASDisplayNodeAssertMainThread(); - _batchUpdateFlag = YES; + _performingBatchUpdates = YES; } - (void)rangeControllerEndUpdates:(ASRangeController *)rangeController completion:(void (^)(BOOL))completion { @@ -397,7 +397,7 @@ static BOOL _isInterceptedSelector(SEL sel) }]; [_batchUpdateBlocks removeAllObjects]; - _batchUpdateFlag = NO; + _performingBatchUpdates = NO; } - (NSArray *)rangeControllerVisibleNodeIndexPaths:(ASRangeController *)rangeController @@ -420,7 +420,7 @@ static BOOL _isInterceptedSelector(SEL sel) - (void)rangeController:(ASRangeController *)rangeController didInsertNodesAtIndexPaths:(NSArray *)indexPaths withAnimationOption:(ASDataControllerAnimationOptions)animationOption { ASDisplayNodeAssertMainThread(); - if (_batchUpdateFlag) { + if (_performingBatchUpdates) { [_batchUpdateBlocks addObject:^{ [super insertItemsAtIndexPaths:indexPaths]; }]; @@ -435,7 +435,7 @@ static BOOL _isInterceptedSelector(SEL sel) { ASDisplayNodeAssertMainThread(); - if (_batchUpdateFlag) { + if (_performingBatchUpdates) { [_batchUpdateBlocks addObject:^{ [super deleteItemsAtIndexPaths:indexPaths]; }]; @@ -450,7 +450,7 @@ static BOOL _isInterceptedSelector(SEL sel) { ASDisplayNodeAssertMainThread(); - if (_batchUpdateFlag) { + if (_performingBatchUpdates) { [_batchUpdateBlocks addObject:^{ [super insertSections:indexSet]; }]; @@ -465,7 +465,7 @@ static BOOL _isInterceptedSelector(SEL sel) { ASDisplayNodeAssertMainThread(); - if (_batchUpdateFlag) { + if (_performingBatchUpdates) { [_batchUpdateBlocks addObject:^{ [super deleteSections:indexSet]; }];