Skip to content

Commit

Permalink
Invalidate the long press timer & reset the linkRange when the text s…
Browse files Browse the repository at this point in the history
…torage changes. Fixes mjarvis#1
  • Loading branch information
mjarvis committed Jun 4, 2014
1 parent 4bb9e0e commit 4218c4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MFJLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ - (void)setTextStorage:(NSTextStorage *)textStorage
{
_textStorage = textStorage;

[self.timer invalidate];
self.linkRange = NSMakeRange(NSNotFound, 0);

[self setNeedsDisplay];
}

Expand Down

0 comments on commit 4218c4d

Please sign in to comment.