Snippet
Written with a loving hand by kitt some time around 22:44 on 11 January 2010
View events bound to an element in jquery.
// List bound events:
console.dir(jQuery('#elem').data('events'));// Log ALL handlers for ALL events:jQuery.each($('#elem').data('events'),function(i, event){jQuery.each(event,function(i, handler){
console.log( handler.toString());});});