From d85d366fbffd9d46ac4153b2756866d77487e58d Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 15 Dec 2009 10:45:22 +0800 Subject: [PATCH] Default callbackContext to the $.extended ajax options for 1.3.2 compatibility, per #5654. --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index df418eba..5cc7b37e 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