aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-11-07 14:59:47 +0100
committerJohn Resig <jeresig@gmail.com>2009-11-07 14:59:47 +0100
commit513053d62ba86ca6ab1f4646fdac3ec6819b2db9 (patch)
tree9e780020665f6f9d4a90bd811958c8295ed50b2c /src
parent9a371e2d93d6e0a70b4c99e2ca44cbe14017fe5c (diff)
downloadjquery-513053d62ba86ca6ab1f4646fdac3ec6819b2db9.tar.gz
jquery-513053d62ba86ca6ab1f4646fdac3ec6819b2db9.zip
The complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker' for the patch. Fixes #5468.
Diffstat (limited to 'src')
-rw-r--r--src/ajax.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 1cb7ee5b1..353c824ff 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -457,6 +457,8 @@ jQuery.extend({
xhr.send( type === "POST" || type === "PUT" ? s.data : null );
} catch(e) {
jQuery.handleError(s, xhr, null, e);
+ // Fire the complete handlers
+ complete();
}
// firefox 1.5 doesn't fire statechange for sync requests