]> source.dussan.org Git - jquery.git/commitdiff
Default callbackContext to the $.extended ajax options for 1.3.2 compatibility, per...
authorDave Methvin <dave.methvin@gmail.com>
Tue, 15 Dec 2009 02:45:22 +0000 (10:45 +0800)
committerJohn Resig <jeresig@gmail.com>
Thu, 17 Dec 2009 20:01:39 +0000 (04:01 +0800)
src/ajax.js

index df418eba5dfdc8a9538f3afaf934df32b1389d62..5cc7b37e7f3cd5af44a14cd5e1a6e1e487d4d2db 100644 (file)
@@ -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