mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-21 19:42:59 +08:00
Removed superclass call to didFinishLoad: in RKObjectLoader. Was resulting in duplicated dispatch of life-cycle requests. Fixes #44
This commit is contained in:
@@ -199,7 +199,11 @@
|
||||
|
||||
- (void)didFinishLoad:(RKResponse*)response {
|
||||
_response = [response retain];
|
||||
|
||||
|
||||
if ([_delegate respondsToSelector:@selector(request:didLoadResponse:)]) {
|
||||
[_delegate request:self didLoadResponse:response];
|
||||
}
|
||||
|
||||
if (NO == [self encounteredErrorWhileProcessingRequest:response]) {
|
||||
// TODO: Should probably be an expected MIME types array set by client/manager
|
||||
// if ([self.objectMapper hasParserForMIMEType:[response MIMEType]) canMapFromMIMEType:
|
||||
@@ -215,8 +219,6 @@
|
||||
[self responseProcessingSuccessful:NO withError:nil];
|
||||
}
|
||||
}
|
||||
|
||||
[super didFinishLoad:response];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user