Permalink
Browse files

Merge pull request #192 from liuyaodong/patch-1

Canceling scheduled method calls inside `done`.
  • Loading branch information...
2 parents d775e8d + 307ca57 commit 130d31288ef9d3fde53501f5faaa8dfb1d7ba385 @matej matej committed Feb 25, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 MBProgressHUD.m
View
@@ -363,6 +363,7 @@ - (void)animationFinished:(NSString *)animationID finished:(BOOL)finished contex
}
- (void)done {
+ [NSObject cancelPreviousPerformRequestsWithTarget:self];
isFinished = YES;
self.alpha = 0.0f;
if (removeFromSuperViewOnHide) {

0 comments on commit 130d312

Please sign in to comment.