How could I create a function that would console.log details every time jQuery binds to a click event?
<p>How could I create a function that would console.log details every time jQuery binds to a click event?</p>

<p>Like logging when this happens.</p>

<pre><code>$('.classy').on('click', 'button', function(){
    console.log('clicked');
})
</code></pre>

<p>I'm trying to trouble shoot why these events are firing twice.</p>
