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 df418eb..5cc7b37 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