You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an issue with the method stop. Immediately after stoping the countdown, i was reinitializing a new one on the same div. The problem was that it kept the old data.
For example:
1 - Countdown is at 1'47"
2 - I call stop
3 - I call an init with m = 2, s = 0
4 - The countdown displays 2'00" and immediatly it returns to 1"47 and keeps decreasing with the old parameters.
I solved this by adding a timeout before reinitializing the countdown:
Hi,
I had an issue with the method
stop
. Immediately after stoping the countdown, i was reinitializing a new one on the same div. The problem was that it kept the old data.For example:
1 - Countdown is at 1'47"
2 - I call
stop
3 - I call an init with m = 2, s = 0
4 - The countdown displays 2'00" and immediatly it returns to 1"47 and keeps decreasing with the old parameters.
I solved this by adding a timeout before reinitializing the countdown:
Thanks for this plugin
The text was updated successfully, but these errors were encountered: