No need to set userInteractionEnabled in the ASTextNode init method

The userInteractionEnabled state will be set by ASControlNode in viewDidLoad to the fitting value.
This commit is contained in:
Michael Schneider
2016-02-01 20:11:37 -08:00
parent 89eae1213d
commit d1c2da07e7

View File

@@ -104,8 +104,6 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
_shadowOpacity = [super shadowOpacity];
_shadowRadius = [super shadowRadius];
// Disable user interaction for text node by default.
self.userInteractionEnabled = NO;
self.needsDisplayOnBoundsChange = YES;
_truncationMode = NSLineBreakByWordWrapping;