Skip to content

Commit a6d20a2

Browse files
committed
replace _firstViewAttribute with self.firstViewAttribute
1 parent 9301688 commit a6d20a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Masonry/MASViewConstraint.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ - (BOOL)hasBeenInstalled {
136136

137137
- (void)setSecondViewAttribute:(id)secondViewAttribute {
138138
if ([secondViewAttribute isKindOfClass:NSValue.class]) {
139-
if ([_firstViewAttribute.item isKindOfClass:MASLayoutGuide.class]) {
140-
_secondViewAttribute = [[MASViewAttribute alloc] initWithView:_firstViewAttribute.view
139+
if ([self.firstViewAttribute.item isKindOfClass:MASLayoutGuide.class]) {
140+
_secondViewAttribute = [[MASViewAttribute alloc] initWithView:self.firstViewAttribute.view
141141
layoutAttribute:self.firstViewAttribute.layoutAttribute];
142142
} else {
143143
[self setLayoutConstantWithValue:secondViewAttribute];

0 commit comments

Comments
 (0)