From: John Resig Date: Sat, 7 Nov 2009 13:59:47 +0000 (+0100) Subject: The complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=513053d62ba86ca6ab1f4646fdac3ec6819b2db9;p=jquery.git The complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker' for the patch. Fixes #5468. --- 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