]> source.dussan.org Git - jquery.git/commitdiff
Report correct Error object to handleError. Part of the fix for #6677.
authorDave Methvin <dave.methvin@gmail.com>
Fri, 24 Sep 2010 21:47:37 +0000 (17:47 -0400)
committerjeresig <jeresig@gmail.com>
Fri, 24 Sep 2010 21:47:37 +0000 (17:47 -0400)
src/ajax.js

index 71bdd461bef9572773d3ee9cb5234d3dbd17938d..baf7ae8efcdb8533d2ca84282f450c226e3c9b1f 100644 (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 );