From: Dave Methvin Date: Tue, 15 Dec 2009 02:45:22 +0000 (+0800) Subject: Default callbackContext to the $.extended ajax options for 1.3.2 compatibility, per... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=d85d366fbffd9d46ac4153b2756866d77487e58d Default callbackContext to the $.extended ajax options for 1.3.2 compatibility, per #5654. --- diff --git a/src/ajax.js b/src/ajax.js index df418eb..5cc7b37 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -199,7 +199,7 @@ jQuery.extend({ var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings); var jsonp, status, data, - callbackContext = s.context || window, + callbackContext = s.context || s, type = s.type.toUpperCase(); // convert data if not already a string