title: Javascript: Remove all event listeners
body: <p>What's the best way to remove all event listeners? I've got something like this (using jQuery) but I'm not sure if this is the best way to go about it:</p>
  
  <pre><code>// Remove all the event listernes
  $('*').off('blur click change dblclick each error focus focusin focusout keydown keypress keyup load mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave popstate resize scroll select submit unload');
  $(window).off('scroll');
  </code></pre>