I have jsFiddle here: http://jsfiddle.net/dztGA/22/
Purpose:. Essentially, I'm trying to have 2 discrete timers on the same page that can be destroyed and re-created using the mouse / mouse (pause) or manual progression (reload).
Problem: What my single jsFiddle timer illustrates is that when I click Stop Timer, my setInterval (stored in variable t) seems to have multiple instances, although it is destroyed using clearInterval (t). This becomes apparent when I click "Restart timer" and it seems to have 2+ independent timers, as shown by fast increment.
Disclaimer: I have done as much SO research as I can, but because I will have 2 different sliders per page, I cannot use the βclear all timersβ methods, so I tried to save them in a variable.
I hope this is clear. Thanks for the submission.
source share