aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-12-09 08:09:41 -0800
committerJohn Resig <jeresig@gmail.com>2009-12-09 08:09:41 -0800
commit9e60fec46b2394541f75da3e333094d41069e84f (patch)
tree01364eac8e9cac48afaae6edaa0ccae05a16ffff
parent17791c9a3e8a88e129a6956e7053b964d7b34778 (diff)
downloadjquery-9e60fec46b2394541f75da3e333094d41069e84f.tar.gz
jquery-9e60fec46b2394541f75da3e333094d41069e84f.zip
Make sure that an actual timeout is triggered (and not accidentally triggered from a setInterval). Fixes #5609.
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
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();
}