jQuery.hasEventListener
jQuery.hasEventListener copied to clipboard
hasEventListener is a jQuery plugin which checks if an Object or a DOM element actually has a particular/live/delegated event listener bound to it.
Me again... The reason for the break is that in JQuery 1.8+ they moved the $.data("events") to $._data('events") as to not mess with someones data-events tag. I made a quick...
These changes make the plugin work with jQuery 1.8 with the new Sizzle filter declarations and internal event data structure. (At least for regular non-delegated events). It also still works...
Viewing the example fiddle (http://jsfiddle.net/sebastienp/eHGqB/) and changing the jQuery version to 1.7+ will show those returning false.