objectivehtml / FlipClock

http://flipclockjs.com/
MIT License
2.74k stars 952 forks source link

How to properly destroy a running flipclock instance? #407

Open tsummerall opened 4 years ago

tsummerall commented 4 years ago

I have a use case where I want to allow users to create and destroy multiple flipclocks on a page.

Is there an approved way to unmount a running flipclock, stopping the timeout functions and triggering whatever other garbage collection is necessary?

Dror-Bar commented 4 years ago

I would also like to know.

tbone849 commented 4 years ago

There is a stop() function associated with each timer instance