Opened 12 years ago
Closed 12 years ago
#7262 closed enhancement (cantfix)
make isEventSupported public
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.6 |
Component: | support | Version: | 1.4.3 |
Keywords: | eventSupported event support public | Cc: | |
Blocked by: | Blocking: |
Description
Please make isEventSupported public.
jQuery.eventSupported = function( eventName, el ) { el = document.createElement(el || "div"); eventName = "on" + eventName; var isSupported = (eventName in el); if ( !isSupported ) { el.setAttribute(eventName, "return;"); isSupported = typeof el[eventName] === "function"; } el = null; return isSupported; };
Note the slightly change with el variable.
regards alex
Change History (5)
comment:1 Changed 12 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 12 years ago by
Status: | pending → new |
---|
This can be usefull for plugin authors, who are implementing new features based on events, wich are supported in some browsers and in some not. Due to the fact, that this method doesn't work in all browsers with all events, it isn't very important.
comment:3 Changed 12 years ago by
Component: | unfiled → support |
---|---|
Keywords: | eventSupported event support public added |
Priority: | undecided → low |
Status: | new → open |
comment:5 Changed 12 years ago by
Milestone: | → 1.6 |
---|---|
Resolution: | → cantfix |
Status: | open → closed |
(Un)fortunately we've removed most of the isEventSupported logic in jQuery 1.6, so this isn't relevant any longer.
Note: See
TracTickets for help on using
tickets.
Could you please provide a use case for this enhancement?