-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup / Destroy #296
Comments
you can simply delete it: const countUp = new CountUp('targetId', 5234);
countUp.start(); and later
|
Thank you for the comment but will this also delete events attached via enableScrollSpy? |
good point. You could do
I really don't think you're going to get any performance wins by doing that. |
However if you deleted your countUp instance, and it was using scroll spy, you could get a null pointer exception, so I could add a detach method. |
This is published in v2.4.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any way to destory / cleanup countup after use?
Thanks!
The text was updated successfully, but these errors were encountered: