X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fajax.js;fp=src%2Fajax.js;h=f33bd49afff22de0edb78486369c37809a92bfd4;hp=b361a2a735ca766b8fcd5c106972dbcb83e5d5c4;hb=d66cc553167c6b00d19aa62a4dd1e9affb20d395;hpb=7eba4b76dfb4dde3b514281d614d7ac4fedc0289 diff --git a/src/ajax.js b/src/ajax.js index b361a2a..f33bd49 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 );