mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-23 03:20:39 +08:00
Merge pull request #147 from yufenglv/master
fix the crash when calling rebuildData (#138)
This commit is contained in:
@@ -117,6 +117,10 @@
|
||||
|
||||
}
|
||||
|
||||
- (void)cancelSizeNextBlock{
|
||||
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(sizeNextBlock) object:nil];
|
||||
}
|
||||
|
||||
+ (dispatch_queue_t)sizingQueue
|
||||
{
|
||||
static dispatch_queue_t sizingQueue = NULL;
|
||||
@@ -296,6 +300,7 @@ static BOOL ASRangeIsValid(NSRange range)
|
||||
* teardown
|
||||
*/
|
||||
[self teardownAllNodes];
|
||||
[self cancelSizeNextBlock];
|
||||
|
||||
/*
|
||||
* setup
|
||||
|
||||
Reference in New Issue
Block a user