The complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker' for the patch. Fixes #5468.

This commit is contained in:
John Resig 2009-11-07 14:59:47 +01:00
parent 9a371e2d93
commit 513053d62b

View file

@ -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