@mikesherov said: no need for an else if!

This commit is contained in:
jaubourg 2012-05-07 19:14:00 +02:00
parent 169b4185bc
commit 03e0029761

View 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 );