Skip to content

Commit 21178f2

Browse files
committed
Only use options as ajax context if incoming options context property is undefined; fixes #6727.
1 parent b080aea commit 21178f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ jQuery.extend({
202202
var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings),
203203
jsonp, status, data, type = s.type.toUpperCase();
204204

205-
s.context = origSettings && origSettings.context || s;
205+
s.context = origSettings.context !== undefined? origSettings.context : s;
206206

207207
// convert data if not already a string
208208
if ( s.data && s.processData && typeof s.data !== "string" ) {

0 commit comments

Comments
 (0)