Skip to content

Commit

Permalink
Merge pull request #7 from ahmads/master
Browse files Browse the repository at this point in the history
Prevent errors when calling `stopConfetti` before `startConfetti`
  • Loading branch information
sudeepag committed Mar 6, 2016
2 parents 0668023 + ab429a8 commit d09e7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pod/Classes/SAConfettiView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class SAConfettiView: UIView {
}

public func stopConfetti() {
emitter.birthRate = 0
emitter?.birthRate = 0
}

func imageForType(type: ConfettiType) -> UIImage? {
Expand Down

0 comments on commit d09e7c1

Please sign in to comment.