 how to get triggering element in a jquery handler, when capturing event with the document
<p>I've got:</p>

<pre><code>$(document).bind("myevent", function (event) {
    console.log($(this).attr('id');
});
</code></pre>

<p>Attribute function returns undefined because its spitting out the document ID, but this event is being triggered by a child element and is bubbling up to the document. But I need to find the child element here.</p>
