Skip to main content

Bug Tracker

Side navigation

Ticket #5833: jquery-1.4.1.js-event_detection.patch
File jquery-1.4.1.js-event_detection.patch, 0.5 KB (added by orderthruchaos, February 05, 2010 04:49PM UTC)

Patch that (potentially) fixes event support.

*** jquery-1.4.1.js	Fri Feb  5 10:43:33 2010
--- jquery-141-patched.js	Fri Feb  5 09:17:59 2010
***************
*** 930,935 ****
--- 930,936 ----
  	// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
  	var eventSupported = function( eventName ) { 
  		var el = document.createElement("div"); 
+                 el = el.wrappedJSObject || el;
  		eventName = "on" + eventName; 
  
  		var isSupported = (eventName in el);

Download in other formats:

Original Format