]> source.dussan.org Git - jquery.git/commitdiff
@mikesherov said: no need for an else if!
authorjaubourg <j@ubourg.net>
Mon, 7 May 2012 17:14:00 +0000 (19:14 +0200)
committerjaubourg <j@ubourg.net>
Mon, 7 May 2012 17:14:00 +0000 (19:14 +0200)
src/core.js

index f1feb702f25da8d0357560e95c60c306fca960a9..3fcc9e46c37965ceeda4c077edbd6d43e270f158 100644 (file)
@@ -866,7 +866,7 @@ jQuery.ready.promise = function( object ) {
                        window.addEventListener( "load", jQuery.ready, false );
 
                // If IE event model is used
-               } else if ( document.attachEvent ) {
+               } else {
                        // ensure firing before onload,
                        // maybe late but safe also for iframes
                        document.attachEvent( "onreadystatechange", DOMContentLoaded );