title: Namespace vanilla JavaScript events like in jQuery
body: <p>In jQuery, when you set an event, you are able to namespace it. This means (if you want) you can have multiple resize window events, for example, and be able to unbind them individually without unbinding all events on that selector.</p>
  <p>Example of jQuery namespacing:</p>
  <pre><code>$(window).on('scroll.myScrollNamespace, function() ...
  </code></pre>
  <p>I'm wondering how I can create a namespace in plain JavaScript. This obviously would not work:</p>
  <pre><code>window.addEventListener('resize.myScrollNamespace', function() ...
  </code></pre>