From: John Resig Date: Thu, 27 Sep 2007 20:49:30 +0000 (+0000) Subject: Fixed the attribution for the DOM Ready fix - the previously used changes weren't... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=1344a7fd503054299442c3463a0e311729f8229a Fixed the attribution for the DOM Ready fix - the previously used changes weren't significant. --- diff --git a/src/event.js b/src/event.js index 919dbf8..99778f8 100644 --- a/src/event.js +++ b/src/event.js @@ -433,10 +433,10 @@ function bindReady(){ // Continually check to see if the document is ready (function timer() { try { - // If IE is used, use the excellent hack by Hedger Wang and Andrea Giammarchi - // http://www.3site.eu/jstests/onContent/DOMReadyAnddoScroll.php + // If IE is used, use the trick by Diego Perini + // http://javascript.nwbox.com/IEContentLoaded/ if ( jQuery.browser.msie || document.readyState != "loaded" && document.readyState != "complete" ) - document.firstChild.doScroll("left"); + document.documentElement.doScroll("left"); // and execute any waiting functions jQuery.ready();