title: How to get at target element with jQuery event listener?
body: <p>I have an event listener, and an element that triggers a custom event on click. They’re set up as follows:</p>
  
  <pre><code>$(document).on('customEventName', function(e) {
      // do something
  });
  
  $(document).on('click', '[data-action]', function(e) {
      e.preventDefault();
      $(document).trigger( $(this).attr('action') );
  });
  </code></pre>
  
  <p>Say I have an anchor tag (<code>&lt;a href="#" data-target="customEventName"&gt;</code>) trigger the <code>click</code> event, how would I then get at that <code>&lt;a&gt;</code> tag and its properties in my listener? I’m wanting to get at the object to parse any additional <code>data-</code> attributes.</p>