From 1130beb72be9d9f5d6bb6f303501da5ec2e3744e Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Fri, 24 Sep 2010 17:47:37 -0400 Subject: [PATCH] Report correct Error object to handleError. Part of the fix for #6677. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index 71bdd461b..baf7ae8ef 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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 ); -- 2.39.5