Update UIView+WebCache.m
fix typo error from `callCompletedBlockClojure` to `callCompletedBlockClosure`
This commit is contained in:
parent
a6b6e44ead
commit
013223ca8e
|
@ -141,7 +141,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL;
|
||||||
BOOL shouldCallCompletedBlock = finished || (options & SDWebImageAvoidAutoSetImage);
|
BOOL shouldCallCompletedBlock = finished || (options & SDWebImageAvoidAutoSetImage);
|
||||||
BOOL shouldNotSetImage = ((image && (options & SDWebImageAvoidAutoSetImage)) ||
|
BOOL shouldNotSetImage = ((image && (options & SDWebImageAvoidAutoSetImage)) ||
|
||||||
(!image && !(options & SDWebImageDelayPlaceholder)));
|
(!image && !(options & SDWebImageDelayPlaceholder)));
|
||||||
SDWebImageNoParamsBlock callCompletedBlockClojure = ^{
|
SDWebImageNoParamsBlock callCompletedBlockClosure = ^{
|
||||||
if (!self) { return; }
|
if (!self) { return; }
|
||||||
if (!shouldNotSetImage) {
|
if (!shouldNotSetImage) {
|
||||||
[self sd_setNeedsLayout];
|
[self sd_setNeedsLayout];
|
||||||
|
@ -155,7 +155,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL;
|
||||||
// OR
|
// OR
|
||||||
// case 1b: we got no image and the SDWebImageDelayPlaceholder is not set
|
// case 1b: we got no image and the SDWebImageDelayPlaceholder is not set
|
||||||
if (shouldNotSetImage) {
|
if (shouldNotSetImage) {
|
||||||
dispatch_main_async_safe(callCompletedBlockClojure);
|
dispatch_main_async_safe(callCompletedBlockClosure);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL;
|
||||||
#else
|
#else
|
||||||
[self sd_setImage:targetImage imageData:targetData basedOnClassOrViaCustomSetImageBlock:setImageBlock cacheType:cacheType imageURL:imageURL];
|
[self sd_setImage:targetImage imageData:targetData basedOnClassOrViaCustomSetImageBlock:setImageBlock cacheType:cacheType imageURL:imageURL];
|
||||||
#endif
|
#endif
|
||||||
callCompletedBlockClojure();
|
callCompletedBlockClosure();
|
||||||
});
|
});
|
||||||
}];
|
}];
|
||||||
[self sd_setImageLoadOperation:operation forKey:validOperationKey];
|
[self sd_setImageLoadOperation:operation forKey:validOperationKey];
|
||||||
|
|
Loading…
Reference in New Issue