]> source.dussan.org Git - jquery.git/commitdiff
Fix #10417. setTimeout w/o 2nd arg is jQuery.later! Close gh-1065.
authorOleg <markelog@gmail.com>
Mon, 10 Dec 2012 08:00:12 +0000 (12:00 +0400)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 11 Dec 2012 01:51:49 +0000 (20:51 -0500)
src/ajax/xhr.js
src/core.js
src/effects.js

index d00e1f125755d1be1156a7f7cd7b947f1389d8a6..3c1fde374c484ae0a7851c1b3dbd1755d8fc3985 100644 (file)
@@ -190,7 +190,7 @@ if ( xhrSupported ) {
                                        } else if ( xhr.readyState === 4 ) {
                                                // (IE6 & IE7) if it's in cache and has been
                                                // retrieved directly we need to fire the callback
-                                               setTimeout( callback, 0 );
+                                               setTimeout( callback );
                                        } else {
                                                handle = ++xhrId;
                                                if ( xhrOnUnloadAbort ) {
index 5db9b5e829199f947ed88ff8d647adbbfb0a3ab4..d666567f253a6357578f9db931c50eaea84cb314 100644 (file)
@@ -386,7 +386,7 @@ jQuery.extend({
 
                // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
                if ( !document.body ) {
-                       return setTimeout( jQuery.ready, 1 );
+                       return setTimeout( jQuery.ready );
                }
 
                // Remember that the DOM is ready
@@ -858,7 +858,7 @@ jQuery.ready.promise = function( obj ) {
                // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
                if ( document.readyState === "complete" ) {
                        // Handle it asynchronously to allow scripts the opportunity to delay ready
-                       setTimeout( jQuery.ready, 1 );
+                       setTimeout( jQuery.ready );
 
                // Standards-based browsers support DOMContentLoaded
                } else if ( document.addEventListener ) {
index 68fc6010125e68de2ae2637a96a3242820e32ce5..da680f0b62a80a169b3a6fbf22ccec0ae0096a80 100644 (file)
@@ -51,7 +51,7 @@ var fxNow, timerId,
 function createFxNow() {
        setTimeout(function() {
                fxNow = undefined;
-       }, 0 );
+       });
        return ( fxNow = jQuery.now() );
 }