Commit 395a032a authored by Dave Methvin's avatar Dave Methvin Committed by jeresig

Use origSettings.context unless it's undefined; for that case use merged...

Use origSettings.context unless it's undefined; for that case use merged settings as context for backcompat with jQuery <1.3. Fixes #6727.
parent 7862c45a
...@@ -207,7 +207,9 @@ jQuery.extend({ ...@@ -207,7 +207,9 @@ jQuery.extend({
jsonp, status, data, type = s.type.toUpperCase(); jsonp, status, data, type = s.type.toUpperCase();
s.url = s.url.replace( rhash, "" ); 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 // convert data if not already a string
if ( s.data && s.processData && typeof s.data !== "string" ) { if ( s.data && s.processData && typeof s.data !== "string" ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment