X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax.js;h=f1de0f8c52d93c31c941794364f991624ee32be8;hb=155ecf42a0033785160e071507f0795b3c86a32b;hp=3c199af95ba7b49d00317d2f4d269194557ba081;hpb=6618ff0b0abe38a0914d8afe0a2b271c977adf6b;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 3c199af..f1de0f8 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -530,7 +530,7 @@ jQuery.extend({ handleError: function( s, xhr, status, e ) { // If a local callback was specified, fire it if ( s.error ) { - s.error.call( s.context || window, xhr, status, e ); + s.error.call( s.context || s, xhr, status, e ); } // Fire the global callback