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

Destroy method? #26

Open
mateuswetah opened this issue Oct 16, 2018 · 0 comments
Open

Destroy method? #26

mateuswetah opened this issue Oct 16, 2018 · 0 comments

Comments

@mateuswetah
Copy link

Hi there, thanks for the awesome plugin.

This is more of a question than a bug. Is there a way to destroy my vue2-hammer instance? I'm facing some memory leaks on my code and I know it could be due to a bunch of things, but my profile analysis tells me that HammerJS is one of the memory eaters. Reading about memory leaks on VueJS documentation tells me that I should take care of calling destroy() methods as much as I can when using third-party libraries in my beforeDestroy() lifecycle hook...

Would you suggest anything? I'm using it only in one component actually, as a directive.

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

1 participant