mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
Several small optimizations, especially to _ASPendingState and other hot paths.
This commit is contained in:
@@ -97,6 +97,8 @@ static NSString *ASTextNodeTruncationTokenAttributeName = @"ASTextNodeTruncation
|
||||
|
||||
#pragma mark - NSObject
|
||||
|
||||
static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
if (self = [super init]) {
|
||||
@@ -120,7 +122,7 @@ static NSString *ASTextNodeTruncationTokenAttributeName = @"ASTextNodeTruncation
|
||||
self.opaque = NO;
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
|
||||
self.linkAttributeNames = @[ NSLinkAttributeName ];
|
||||
self.linkAttributeNames = DefaultLinkAttributeNames;
|
||||
|
||||
// Accessibility
|
||||
self.isAccessibilityElement = YES;
|
||||
|
||||
Reference in New Issue
Block a user