Skip to main content

Bug Tracker

Side navigation

Ticket #999: dot_net_fix_Rev1423.diff


File dot_net_fix_Rev1423.diff, 0.5 KB (added by brandon, February 26, 2007 02:02PM UTC)

Patch for latest SVN

Index: src/event/event.js
===================================================================
--- src/event/event.js	(revision 1423)
+++ src/event/event.js	(working copy)
@@ -910,7 +910,12 @@
 		}, 10); 
 
 	// A fallback to window.onload, that will always work
-	jQuery.event.add( window, "load", jQuery.ready );
+	window.oldLoad = window.oldLoad;
+	window.onload = function(event) {
+		jQuery.ready();
+		window.oldLoad(event);
+		window.oldLoad = null;
+	}
 	
 };

Download in other formats:

Original Format