Skip to content

Commit

Permalink
fix: arrow function context
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed May 21, 2019
1 parent 0ac09b4 commit 23fbdbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/label.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ export class Label extends LabelBase {
// [DTDefaultLineBreakMode]: kCTLineBreakByWordWrapping
} as any;
this.htmlText = NSMutableAttributedString.alloc().initWithHTMLDataOptionsDocumentAttributes(nsData, options, null);
this.htmlText.enumerateAttributesInRangeOptionsUsingBlock({ location: 0, length: this.htmlText.length }, NSAttributedStringEnumerationReverse, function(
this.htmlText.enumerateAttributesInRangeOptionsUsingBlock({ location: 0, length: this.htmlText.length }, NSAttributedStringEnumerationReverse, (
attributes: NSDictionary<any, any>,
range,
stop
) {
) => {
if (!!attributes.valueForKey('DTGUID')) {
// We need to remove this attribute or links are not colored right
//
Expand Down

0 comments on commit 23fbdbf

Please sign in to comment.