Skip to content

Commit 23fbdbf

Browse files
committed
fix: arrow function context
1 parent 0ac09b4 commit 23fbdbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/label.ios.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ export class Label extends LabelBase {
145145
// [DTDefaultLineBreakMode]: kCTLineBreakByWordWrapping
146146
} as any;
147147
this.htmlText = NSMutableAttributedString.alloc().initWithHTMLDataOptionsDocumentAttributes(nsData, options, null);
148-
this.htmlText.enumerateAttributesInRangeOptionsUsingBlock({ location: 0, length: this.htmlText.length }, NSAttributedStringEnumerationReverse, function(
148+
this.htmlText.enumerateAttributesInRangeOptionsUsingBlock({ location: 0, length: this.htmlText.length }, NSAttributedStringEnumerationReverse, (
149149
attributes: NSDictionary<any, any>,
150150
range,
151151
stop
152-
) {
152+
) => {
153153
if (!!attributes.valueForKey('DTGUID')) {
154154
// We need to remove this attribute or links are not colored right
155155
//

0 commit comments

Comments
 (0)