Revised logic in data conversion to account for when dataFilter modifies the dataTypes list.
This commit is contained in:
parent
981d1e08eb
commit
2a5c16f217
|
@ -415,6 +415,8 @@ jQuery.extend({
|
||||||
|
|
||||||
if ( i ) {
|
if ( i ) {
|
||||||
|
|
||||||
|
prev = dataTypes[ i - 1 ];
|
||||||
|
|
||||||
if ( prev !== "*" && current !== "*" && prev !== current ) {
|
if ( prev !== "*" && current !== "*" && prev !== current ) {
|
||||||
|
|
||||||
oneConv = conv1 =
|
oneConv = conv1 =
|
||||||
|
@ -440,8 +442,6 @@ jQuery.extend({
|
||||||
response = s.dataFilter( response );
|
response = s.dataFilter( response );
|
||||||
dataTypes = s.dataTypes;
|
dataTypes = s.dataTypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
prev = current;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// We have a real success
|
// We have a real success
|
||||||
|
|
Loading…
Reference in a new issue