X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=a9f47ddb27300831c3c99f23d1d8f6c1785b7a74;hb=d251809912c06478fd0c7711736ef6ea3572723e;hp=1cb7ee5b16793305d06ede2be81f622fc51fcbd3;hpb=50cf4351a6c4b0031f268279b093e38850b90cd6;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 1cb7ee5..a9f47dd 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -194,7 +194,7 @@ jQuery.extend({ ajax: function( s ) { // Extend the settings, but re-extend 's' so that it can be // checked again later (in the test suite, specifically) - s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s)); + s = jQuery.extend(true, {}, jQuery.ajaxSettings, s); var jsonp, status, data, callbackContext = s.context || window, @@ -457,6 +457,8 @@ jQuery.extend({ xhr.send( type === "POST" || type === "PUT" ? s.data : null ); } catch(e) { jQuery.handleError(s, xhr, null, e); + // Fire the complete handlers + complete(); } // firefox 1.5 doesn't fire statechange for sync requests