Skip to content

Commit

Permalink
[ASTextNode] One more check variables before calling delegate method …
Browse files Browse the repository at this point in the history
…#trivial (#922)
  • Loading branch information
Flatout73 authored and nguyenhuy committed Jul 20, 2018
1 parent 736e200 commit 4b5b90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ASTextNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
}

// Ask our delegate if a long-press on an attribute is relevant
if ([_delegate respondsToSelector:@selector(textNode:shouldLongPressLinkAttribute:value:atPoint:)]) {
if ([self _pendingLinkTap] && [_delegate respondsToSelector:@selector(textNode:shouldLongPressLinkAttribute:value:atPoint:)]) {
return [_delegate textNode:self
shouldLongPressLinkAttribute:_highlightedLinkAttributeName
value:_highlightedLinkAttributeValue
Expand Down

0 comments on commit 4b5b90f

Please sign in to comment.