jgallen23 / fidel

A basic javascript controller
MIT License
36 stars 4 forks source link

Making sure all event listeners are removed on destroy #6

Closed Antonio-Laguna closed 10 years ago

Antonio-Laguna commented 10 years ago

A lot of event listeners persisted within destroy. You can basically see them with $._data(DOMNode,'events');. Those were never unattached and were prone to create memory leaks.