clear the current completionBlock variable before calling it. fixes #31
This commit is contained in:
@@ -310,11 +310,11 @@ public class KDCircularProgress: UIView {
|
||||
|
||||
override public func animationDidStop(anim: CAAnimation, finished flag: Bool) {
|
||||
if let completionBlock = animationCompletionBlock {
|
||||
completionBlock(flag)
|
||||
|
||||
if flag {
|
||||
animationCompletionBlock = nil
|
||||
}
|
||||
|
||||
completionBlock(flag)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user