Fixed the attribution for the DOM Ready fix - the previously used changes weren't...
authorJohn Resig <jeresig@gmail.com>
Thu, 27 Sep 2007 20:49:30 +0000 (20:49 +0000)
committerJohn Resig <jeresig@gmail.com>
Thu, 27 Sep 2007 20:49:30 +0000 (20:49 +0000)
src/event.js

index 919dbf8..99778f8 100644 (file)
@@ -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();