title: Test if event handler is bound to an element in jQuery by delegate() method
body: <p>I have a question similar to <a href="https://stackoverflow.com/questions/1236067/test-if-event-handler-is-bound-to-an-element-in-jquery">this one</a>, however there is one important difference. The method provided in the accepted answer works properly with "directly" bound events. It does not produce results if the handlers are assigned with the <code>delegate</code> method. For example:</p>
  
  <pre><code>$("#some-element").delegate(".some-class", "click", function () {
    alert("Click!");
  });
  </code></pre>
  
  <p>After elements with class <code>some-class</code> are generated and inserted into the html, is there a way to test if the <code>click</code> event handler has been bound to them?</p>
  
  <p><strong>EDIT:</strong> As per @Pointy's comment I'll correct the question above, since the handler wouldn't be bound to <code>.some-class</code>:</p>
  
  <p>Is there a way to check if an element, represented, for instance, by a jQuery object (in this example it could be <code>$(".some-class")</code>), if clicked, would trigger the handler?</p>