mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
The complete event wasn't getting called on local file 404s. Thanks to 'mrspeaker' for the patch. Fixes #5468.
This commit is contained in:
parent
9a371e2d93
commit
513053d62b
@ -457,6 +457,8 @@ jQuery.extend({
|
|||||||
xhr.send( type === "POST" || type === "PUT" ? s.data : null );
|
xhr.send( type === "POST" || type === "PUT" ? s.data : null );
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
jQuery.handleError(s, xhr, null, e);
|
jQuery.handleError(s, xhr, null, e);
|
||||||
|
// Fire the complete handlers
|
||||||
|
complete();
|
||||||
}
|
}
|
||||||
|
|
||||||
// firefox 1.5 doesn't fire statechange for sync requests
|
// firefox 1.5 doesn't fire statechange for sync requests
|
||||||
|
Loading…
Reference in New Issue
Block a user