mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
@mikesherov said: no need for an else if!
This commit is contained in:
parent
169b4185bc
commit
03e0029761
@ -866,7 +866,7 @@ jQuery.ready.promise = function( object ) {
|
|||||||
window.addEventListener( "load", jQuery.ready, false );
|
window.addEventListener( "load", jQuery.ready, false );
|
||||||
|
|
||||||
// If IE event model is used
|
// If IE event model is used
|
||||||
} else if ( document.attachEvent ) {
|
} else {
|
||||||
// ensure firing before onload,
|
// ensure firing before onload,
|
||||||
// maybe late but safe also for iframes
|
// maybe late but safe also for iframes
|
||||||
document.attachEvent( "onreadystatechange", DOMContentLoaded );
|
document.attachEvent( "onreadystatechange", DOMContentLoaded );
|
||||||
|
Loading…
Reference in New Issue
Block a user