Skip to content

Memory leak due to $(window).on('resize',resizer) #34

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

Closed
vicsanca opened this issue Jul 4, 2012 · 1 comment
Closed

Memory leak due to $(window).on('resize',resizer) #34

vicsanca opened this issue Jul 4, 2012 · 1 comment

Comments

@vicsanca
Copy link

vicsanca commented Jul 4, 2012

When a DOM Element is removed it remains in memory due to $(window).on('resize',resizer) function still referencing the element.

@davatron5000
Copy link
Owner

Will need a reduced test case, but this should be avoidable by using .remove() http://api.jquery.com/remove/

Also this may be avoidable with our unbinding our named events which landed in 2d3574e

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

2 participants