Skip to content
Permalink
Browse files

@mikesherov said: no need for an else if!

  • Loading branch information...
jaubourg committed May 7, 2012
1 parent 169b418 commit 03e0029761b6fd5789ac5df13cd06fd219a505ab
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -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 );

0 comments on commit 03e0029

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.