Skip to content

Commit ccb7daf

Browse files
author
Rui Peres
committed
Fixed regression caused by facebookarchive#706
1 parent 6971422 commit ccb7daf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

AsyncDisplayKit/ASCollectionView.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ - (void)setAsyncDelegate:(id<ASCollectionViewDelegate>)asyncDelegate
296296
} else {
297297
_proxyDelegate.target = asyncDelegate;
298298
_asyncDelegate = asyncDelegate;
299+
super.delegate = (id<UICollectionViewDelegate>)_proxyDelegate;
300+
299301
_asyncDelegateImplementsInsetSection = ([_asyncDelegate respondsToSelector:@selector(collectionView:layout:insetForSectionAtIndex:)] ? 1 : 0);
300302
}
301303
}

AsyncDisplayKit/ASTableView.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ - (void)setAsyncDelegate:(id<ASTableViewDelegate>)asyncDelegate
313313
} else {
314314
_proxyDelegate.target = asyncDelegate;
315315
_asyncDelegate = asyncDelegate;
316+
super.delegate = (id<UITableViewDelegate>)_proxyDelegate;
316317
}
317318
}
318319

0 commit comments

Comments
 (0)