davatron5000 / FitText.js

A jQuery plugin for inflating web type
http://fittextjs.com
6.76k stars 1.39k forks source link

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

Closed vicsanca closed 10 years ago

vicsanca commented 12 years ago

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

davatron5000 commented 10 years ago

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 2d3574e549ec0f4074be2abf45aecfdd367ab3f9