Skip to content

Commit

Permalink
Do not prematurely nil completion block (fixes #137) [common]
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed May 4, 2016
1 parent 976e7f9 commit 1945a9e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion Sources/ObjC/MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,6 @@ - (CAMediaTimingFunction *)timingFunctionForAnimationOptions:(UIViewAnimationOpt
- (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag {
if (self.scrollCompletionBlock) {
self.scrollCompletionBlock(flag);
self.scrollCompletionBlock = nil;
}
}

Expand Down
1 change: 0 additions & 1 deletion Sources/Swift/MarqueeLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,6 @@ public class MarqueeLabel: UILabel {
maskLayer?.removeAnimationForKey("setupFade")
} else {
scrollCompletionBlock?(finished: flag)
scrollCompletionBlock = nil;
}
}

Expand Down

0 comments on commit 1945a9e

Please sign in to comment.