Removing some of the SVN-specific stuff from the Ant build file (should probably...
[jquery.git] / src / event.js
index 0f976a0..aabe77e 100644 (file)
@@ -830,7 +830,8 @@ function bindReady() {
 
                // If IE and not an iframe
                // continually check to see if the document is ready
-               if ( document.documentElement.doScroll && window === window.top ) (function() {
+               // NOTE: DO NOT CHANGE TO ===, FAILS IN IE.
+               if ( document.documentElement.doScroll && window == window.top ) (function() {
                        if ( jQuery.isReady ) {
                                return;
                        }
@@ -853,9 +854,9 @@ function bindReady() {
        jQuery.event.add( window, "load", jQuery.ready );
 }
 
-jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
-       "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
-       "change,select,submit,keydown,keypress,keyup,error").split(","), function( i, name ) {
+jQuery.each( ("blur focus load resize scroll unload click dblclick " +
+       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+       "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
 
        // Handle event binding
        jQuery.fn[ name ] = function( fn ) {