Make layoutOptions readonly

This commit is contained in:
rcancro
2015-08-28 20:41:40 -07:00
parent 2a8b20b102
commit fca43a651f
5 changed files with 38 additions and 29 deletions

View File

@@ -66,9 +66,8 @@ static NSString * const kDefaultChildrenKey = @"kDefaultChildrenKey";
id<ASLayoutable> finalLayoutable = [child finalLayoutableWithParent:self];
if (finalLayoutable) {
ASLayoutOptions *finalLayoutOptions = [layoutOptions copy];
finalLayoutOptions.isMutable = NO;
finalLayoutable.layoutOptions = finalLayoutOptions;
[layoutOptions copyIntoOptions:finalLayoutable.layoutOptions];
finalLayoutable.layoutOptions.isMutable = NO;
return finalLayoutable;
}
return child;