Since you are delegating to the document - you need to check the document's event handlers
$._data(document,'events') // will return all event handlers bound to the document
Then you can do check the events you want.. for example click
var events = $._data(document,'events').click; // all click events
$.each(events,function(i,v){ // loop through
v.selector; // will give you all the selectors used in each delegated event
});
http://jsfiddle.net/B7zS6/
each object will contain the following
Object {type: "click", origType: "click", data: undefined, handler: function, guid: 2…}
data: undefined
guid: 2
handler: function (event) {
namespace: ""
needsContext: false
origType: "click"
selector: "#button"
type: "click"
__proto__: Object
This is assuming your delegated events are bound to the document object though. So in this case you "MUST" know which element the event handler is actually bound to. The other answers will probably work a lot better
so this method would not know about
$('body').on("click", "#button", function(event) {
alert("Handled buttonclick event!");
});
or
$('parentelement').on("click", "#button", function(event) {
alert("Handled buttonclick event!");
});