Let's say I have this HTML:
<ul class="waka_waka">
<li>Fozzy Bear</li>
<li>Steve Martin</li>
<li>John Candy</li>
</ul>
... and then an event listener is added with jQuery:
$('ul li').click(function() { console.log('waka_waka!!!'); });
If suddenly at some point one does:
$('.waka_waka').remove();
Are those event listeners automatically detached and released? Or will this actually cause a leak of memory? Is it best practice for one to remove those listeners prior to removing?