Skip to content
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

Is Dragdealer have destroy method or analog to stop calling requestAnimationFrame? #133

Open
Dok11 opened this issue Feb 4, 2019 · 3 comments

Comments

@Dok11
Copy link

Dok11 commented Feb 4, 2019

It's need for SPA website least.
And for example user can close modal window with Dragdealer element, but requestAnimationFrame still calling.

image

@TonyBogdanov
Copy link

+1

@TonyBogdanov
Copy link

TonyBogdanov commented Nov 6, 2019

The only thing I've found is unbindEventListeners(), which seems to release all listeners and stop the requestAnimationFrame loop, but it won't reset the HTML structure. Good enough for me, though.

@ovidiuch
Copy link
Owner

ovidiuch commented Nov 6, 2019

Indeed, unbindEventListeners should destroy a Dragdealer instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants