Levi's comments

This commit is contained in:
Garrett Moon
2016-04-12 16:18:42 -07:00
parent 482ba3cbb0
commit 755c5feaf8
4 changed files with 62 additions and 31 deletions

View File

@@ -16,14 +16,7 @@
#import "ASDisplayNode+FrameworkPrivate.h"
#import "ASImageNode+AnimatedImagePrivate.h"
#import "ASInternalHelpers.h"
@interface ASWeakProxy : NSObject
@property (nonatomic, weak, readonly) id target;
+ (instancetype)weakProxyWithTarget:(id)target;
@end
#import "ASWeakProxy.h"
@implementation ASImageNode (AnimatedImage)
@@ -103,7 +96,7 @@
return;
}
if (self.animatedImagePaused == YES) {
if (self.animatedImagePaused) {
return;
}
@@ -231,25 +224,3 @@
}
@end
@implementation ASWeakProxy
- (instancetype)initWithTarget:(id)target
{
if (self = [super init]) {
_target = target;
}
return self;
}
+ (instancetype)weakProxyWithTarget:(id)target
{
return [[ASWeakProxy alloc] initWithTarget:target];
}
- (id)forwardingTargetForSelector:(SEL)aSelector
{
return _target;
}
@end