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() function? #23

Open
peluja1012 opened this issue Jul 24, 2014 · 9 comments
Open

destroy() function? #23

peluja1012 opened this issue Jul 24, 2014 · 9 comments

Comments

@peluja1012
Copy link

select.js seems to be causing memory leaks in my application. I noticed in the code that a handful of event listeners get attached but they never get removed. Do you plan to add a destroy() function that cleans up all the event listeners?

@dbashford
Copy link

Having it clean up after itself would be huge!

👍

@xredo
Copy link

xredo commented Sep 30, 2014

+1

@nvolungis
Copy link

Yes this would be awesome for SPAs. I know you guys do a lot of Backbone work, how do you get around this issue?

@lmeurs
Copy link

lmeurs commented Mar 24, 2015

Same for Drupal that rebuilds DOM elements when forms get submitted through AJAX. Through JS detach functions one can destroy elements before content is being replaced.

Tether does have a destroy function btw.

@codeclown
Copy link

+1 Came here for a solution, sad to see there doesn't seem to be one.

@joaojose
Copy link

+1

@Maximilianos
Copy link

came here for this.

This was referenced Jan 19, 2016
@jreading
Copy link

Indeed, this should be fast tracked. Anyone working on a PR?

@codeclown
Copy link

@jreading Just above your comment there is a pull request.

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

9 participants