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 7c5c838..81225f2 100644 (file)
@@ -430,7 +430,7 @@ jQuery.extend({
                                // Fire the complete handlers
                                complete();
 
-                               if ( isTimeout ) {
+                               if ( isTimeout === "timeout" ) {
                                        xhr.abort();
                                }