Skip to content
Permalink
Browse files

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

…ged settings as context for backcompat with jQuery <1.3. Fixes #6727.
  • Loading branch information
dmethvin authored and jeresig committed Sep 24, 2010
1 parent 7862c45 commit 395a032ad8263f2674fc95b779a7e9623c6317b9
Showing with 3 additions and 1 deletion.
  1. +3 −1 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" ) {

0 comments on commit 395a032

Please sign in to comment.
You can’t perform that action at this time.