From 395a032ad8263f2674fc95b779a7e9623c6317b9 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Fri, 24 Sep 2010 17:04:54 -0400 Subject: [PATCH] Use origSettings.context unless it's undefined; for that case use merged settings as context for backcompat with jQuery <1.3. Fixes #6727. --- src/ajax.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index a9e13a879..5d93af664 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -207,7 +207,9 @@ jQuery.extend({ jsonp, status, data, type = s.type.toUpperCase(); s.url = s.url.replace( rhash, "" ); - s.context = origSettings && origSettings.context || s; + + // Use original (not extended) context object if it was provided + s.context = origSettings && origSettings.context != null ? origSettings.context : s; // convert data if not already a string if ( s.data && s.processData && typeof s.data !== "string" ) { -- 2.39.5