]> source.dussan.org Git - jquery.git/commitdiff
Make sure that an actual timeout is triggered (and not accidentally triggered from...
authorJohn Resig <jeresig@gmail.com>
Wed, 9 Dec 2009 16:09:41 +0000 (08:09 -0800)
committerJohn Resig <jeresig@gmail.com>
Wed, 9 Dec 2009 16:09:41 +0000 (08:09 -0800)
src/ajax.js

index 7c5c83888bb2fd2d6b121ddff5bbd800021d395d..81225f2cbf9597af5b2628daeac98e66944c3d6d 100644 (file)
@@ -430,7 +430,7 @@ jQuery.extend({
                                // Fire the complete handlers
                                complete();
 
-                               if ( isTimeout ) {
+                               if ( isTimeout === "timeout" ) {
                                        xhr.abort();
                                }