1
$('#element').bind({
    specialEvent : function()
    {
        console.log(1);
    }
});

How do I check whether the element has the specialEvent event or not?

tomsseisums
  • 12,725
  • 19
  • 81
  • 144

1 Answers1

2

In jQuery 1.8 $(element).data('events') has been removed, but you can still get to the events data for debugging purposes via $._data(element, "events") - check this.

console.log($._data(element, 'events'));
jwaliszko
  • 16,574
  • 19
  • 90
  • 155