Skip to main content

Bug Tracker

Side navigation

Ticket #1925: safari_window_load.patch
File safari_window_load.patch, 0.5 KB (added by eric, November 14, 2007 06:00AM UTC)
=== modified file 'src/event.js'
--- src/event.js	2007-10-15 17:55:54 +0000
+++ src/event.js	2007-11-14 06:01:31 +0000
@@ -253,8 +253,8 @@
 		};
 		
 		// Fix target property, if necessary
-		if ( !event.target && event.srcElement )
-			event.target = event.srcElement;
+		if ( !event.target )
+			event.target = event.srcElement ? event.srcElement : document;
 				
 		// check if target is a textnode (safari)
 		if (jQuery.browser.safari && event.target.nodeType == 3)

Download in other formats:

Original Format