Side navigation
Ticket #999: dot_net_fix_Rev1373.diff
File dot_net_fix_Rev1373.diff, 0.5 KB (added by brandon, February 26, 2007 02:01PM UTC)
Patch for 1.1.1 event.js
Index: src/event/event.js
===================================================================
--- src/event/event.js (revision 1373)
+++ src/event/event.js (working copy)
@@ -882,7 +882,13 @@
}, 10);
// A fallback to window.onload, that will always work
- jQuery.event.add( window, "load", jQuery.ready );
+ // A fallback to window.onload, that will always work
+ window.oldLoad = window.oldLoad;
+ window.onload = function(event) {
+ jQuery.ready();
+ window.oldLoad(event);
+ window.oldLoad = null;
+ }
};
Download in other formats:
Original Format
File dot_net_fix_Rev1373.diff, 0.5 KB (added by brandon, February 26, 2007 02:01PM UTC)
Patch for 1.1.1 event.js
Index: src/event/event.js
===================================================================
--- src/event/event.js (revision 1373)
+++ src/event/event.js (working copy)
@@ -882,7 +882,13 @@
}, 10);
// A fallback to window.onload, that will always work
- jQuery.event.add( window, "load", jQuery.ready );
+ // A fallback to window.onload, that will always work
+ window.oldLoad = window.oldLoad;
+ window.onload = function(event) {
+ jQuery.ready();
+ window.oldLoad(event);
+ window.oldLoad = null;
+ }
};