mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 14:15:05 -05:00
Revised logic in data conversion to account for when dataFilter modifies the dataTypes list.
This commit is contained in:
@@ -430,6 +430,8 @@ jQuery.extend({
|
||||
|
||||
if ( i ) {
|
||||
|
||||
prev = dataTypes[ i - 1 ];
|
||||
|
||||
if ( prev !== "*" && current !== "*" && prev !== current ) {
|
||||
|
||||
oneConv = conv1 =
|
||||
@@ -455,8 +457,6 @@ jQuery.extend({
|
||||
response = s.dataFilter( response );
|
||||
dataTypes = s.dataTypes;
|
||||
}
|
||||
|
||||
prev = current;
|
||||
}
|
||||
|
||||
// We have a real success
|
||||
|
||||
Reference in New Issue
Block a user