git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7eba4b7
)
Disables dataType redirection while selecting transport.
author
jaubourg
<j@ubourg.net>
Fri, 4 Feb 2011 20:50:18 +0000
(21:50 +0100)
committer
jaubourg
<j@ubourg.net>
Fri, 4 Feb 2011 20:50:18 +0000
(21:50 +0100)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
b361a2a
..
f33bd49
100644
(file)
--- 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
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 ( typeof selection === "string" ) {
- if ( inspected[ selection ] ) {
+ if ( !executeOnly || inspected[ selection ] ) {
selection = undefined;
} else {
options.dataTypes.unshift( selection );
selection = undefined;
} else {
options.dataTypes.unshift( selection );