Initialize _asyncDelegateImplementsScrollviewDidScroll so we forward scollViewDidScroll: calls

This commit is contained in:
Ethan Nagel
2016-02-24 11:03:06 -08:00
parent eb6aa28d42
commit fa4e20e874

View File

@@ -287,8 +287,10 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
if (asyncDelegate == nil) {
_asyncDelegate = nil;
_proxyDelegate = _isDeallocating ? nil : [[ASTableViewProxy alloc] initWithTarget:nil interceptor:self];
_asyncDelegateImplementsScrollviewDidScroll = NO;
} else {
_asyncDelegate = asyncDelegate;
_asyncDelegateImplementsScrollviewDidScroll = [_asyncDelegate respondsToSelector:@selector(scrollViewDidScroll:)];
_proxyDelegate = [[ASTableViewProxy alloc] initWithTarget:_asyncDelegate interceptor:self];
}