// 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;
}
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 ) {