aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-02-04 21:50:18 +0100
committerjaubourg <j@ubourg.net>2011-02-04 21:50:18 +0100
commitd66cc553167c6b00d19aa62a4dd1e9affb20d395 (patch)
tree84caff6e3cb8bec52a6e5f6dea85402fe04a0e32 /src/ajax.js
parent7eba4b76dfb4dde3b514281d614d7ac4fedc0289 (diff)
downloadjquery-d66cc553167c6b00d19aa62a4dd1e9affb20d395.tar.gz
jquery-d66cc553167c6b00d19aa62a4dd1e9affb20d395.zip
Disables dataType redirection while selecting transport.
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js
index b361a2a73..f33bd49af 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -113,9 +113,9 @@ function inspectPrefiltersOrTransports( structure, options, originalOptions, jqX
for(; i < length && ( executeOnly || !selection ); i++ ) {
selection = list[ i ]( options, originalOptions, jqXHR );
// If we got redirected to another dataType
- // we try there if not done already
+ // we try there if executing only and not done already
if ( typeof selection === "string" ) {
- if ( inspected[ selection ] ) {
+ if ( !executeOnly || inspected[ selection ] ) {
selection = undefined;
} else {
options.dataTypes.unshift( selection );