Skip to content

Commit

Permalink
@mikesherov said: no need for an else if!
Browse files Browse the repository at this point in the history
  • Loading branch information
jaubourg committed May 7, 2012
1 parent 169b418 commit 03e0029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 03e0029

Please sign in to comment.