fate/jquery-has-event — Issue #1: onClick, onSubmit, &c?
Author: DagaDaga
Created: 2012-02-20 02:42:46+00:00
State: open

I need the ability to know whether code was attached to an event through either the DOM or HTML. Evil as it may be, I've modified your code to accomplish this:

$.fn.hasEvent = function(A, F, E) {
var L = 0;
var T = typeof A;
E = E ? E : this;
var V = (E.attr('on'+A) != undefined);