From 9e60fec46b2394541f75da3e333094d41069e84f Mon Sep 17 00:00:00 2001 From: John Resig Date: Wed, 9 Dec 2009 08:09:41 -0800 Subject: [PATCH] Make sure that an actual timeout is triggered (and not accidentally triggered from a setInterval). Fixes #5609. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index 7c5c83888..81225f2cb 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -430,7 +430,7 @@ jQuery.extend({ // Fire the complete handlers complete(); - if ( isTimeout ) { + if ( isTimeout === "timeout" ) { xhr.abort(); }