Report correct Error object to handleError. Part of the fix for #6677.
This commit is contained in:
parent
69994211b0
commit
1130beb72b
|
@ -494,7 +494,7 @@ jQuery.extend({
|
|||
xhr.send( (type !== "GET" && s.data) || null );
|
||||
|
||||
} catch( sendError ) {
|
||||
jQuery.ajax.handleError( s, xhr, null, e );
|
||||
jQuery.ajax.handleError( s, xhr, null, sendError );
|
||||
|
||||
// Fire the complete handlers
|
||||
jQuery.ajax.handleComplete( s, xhr, status, data );
|
||||
|
|
Loading…
Reference in a new issue