wimbarelds / TimeCircles

jQuery plugin to show time since or time until a specific time
295 stars 149 forks source link

setting the TimeCircle back to initial state with start: "false" #120

Open PelegBN opened 8 years ago

PelegBN commented 8 years ago

Hey again,

I'm using backbone.js event functions and I'm trying to reset the time circles to it's initial state and value , in case a certain function is called (basically by a button). I can use the time circles functions [.start(), .stop() & .restart()] but none of those gives me the initial state (which is data-timer="60" seconds and "start" : false). I've tried doing .restart() and right after .stop() but for some reason it shows the circle's time is 0. I also tried .destroy() & .rebuild() but that didn't work either.

From what I've read in various forums, I understand what I'm trying to do is possible... but I couldn't succeed pulling it off. Maybe you could help? I'd appreciate it.

Thank you.