Automattic / antiscroll

OS X Lion style cross-browser native scrolling on the web that gets out of the way.
1.07k stars 162 forks source link

Fix Memory Leak: Remove all listeners when you destroy #93

Open johnnyshields opened 9 years ago

bcherny commented 7 years ago

Jquery already does this when you call remove(). See https://github.com/jquery/jquery/blob/f18ca7bfe0f5e3184bf1ed55daf1668702c5577a/src/manipulation.js#L215 and https://github.com/jquery/jquery/blob/2d4f53416e5f74fa98e0c1d66b6f3c285a12f0ce/src/manipulation.js#L283