addressed comments and fixed tests

This commit is contained in:
rcancro
2015-08-21 21:03:40 -07:00
parent c06a6be188
commit 680305704a
17 changed files with 82 additions and 113 deletions

View File

@@ -25,12 +25,13 @@
- (instancetype)initWithChild:(id<ASLayoutable>)child background:(id<ASLayoutable>)background
{
self = [super init];
if (self) {
ASDisplayNodeAssertNotNil(child, @"Child cannot be nil");
_child = child;
_background = background;
if (!(self = [super init])) {
return nil;
}
ASDisplayNodeAssertNotNil(child, @"Child cannot be nil");
_child = child;
_background = background;
return self;
}