Report correct Error object to handleError. Part of the fix for #6677.

This commit is contained in:
Dave Methvin 2010-09-24 17:47:37 -04:00 committed by jeresig
parent 69994211b0
commit 1130beb72b

View file

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