Default callbackContext to the $.extended ajax options for 1.3.2 compatibility, per #5654.

This commit is contained in:
Dave Methvin 2009-12-15 10:45:22 +08:00 committed by John Resig
parent 04b92e7831
commit d85d366fbf

View file

@ -199,7 +199,7 @@ jQuery.extend({
var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings); var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings);
var jsonp, status, data, var jsonp, status, data,
callbackContext = s.context || window, callbackContext = s.context || s,
type = s.type.toUpperCase(); type = s.type.toUpperCase();
// convert data if not already a string // convert data if not already a string