From 513053d62ba86ca6ab1f4646fdac3ec6819b2db9 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 7 Nov 2009 14:59:47 +0100 Subject: [PATCH] The complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker' for the patch. Fixes #5468. --- src/ajax.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ajax.js b/src/ajax.js index 1cb7ee5..353c824 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 -- 1.7.10.4