jjenzz / jquery.ellipsis

add ellipsis to multiline text
http://codepen.io/jjenzz/full/liAfz
116 stars 79 forks source link

Not unbinding window resize event after deletion of element from the DOM #1

Open hemkaran opened 10 years ago

hemkaran commented 10 years ago

Hi,

I have working on an application where my view is created and destroyed several times and I am using jquery.ellipsis plugin. But I have seen a issue that when the element deletes from the node, even then resize event is firing and due to this reference, element is not going under garbage collection.

PS: Solved this issue by adding an option of namespace in the plugin, by which i can give my own namespace while calling ellipsis and remove this when required.