aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-05-07 19:14:00 +0200
committerjaubourg <j@ubourg.net>2012-05-07 19:14:00 +0200
commit03e0029761b6fd5789ac5df13cd06fd219a505ab (patch)
tree48e101eaea4da1bb6f2364b303dd372c1d5a0d5c
parent169b4185bcd34803b4459cb564c04e72bd4ddf1e (diff)
downloadjquery-03e0029761b6fd5789ac5df13cd06fd219a505ab.tar.gz
jquery-03e0029761b6fd5789ac5df13cd06fd219a505ab.zip
@mikesherov said: no need for an else if!
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index f1feb702f..3fcc9e46c 100644
--- a/src/core.js
+++ b/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 );