Skip to content

Commit

Permalink
Revised logic in data conversion to account for when dataFilter modif…
Browse files Browse the repository at this point in the history
…ies the dataTypes list.
  • Loading branch information
jaubourg committed Dec 25, 2010
1 parent f7ed2ac commit 85f0dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ajax.js
Expand Up @@ -430,6 +430,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 =
Expand All @@ -455,8 +457,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
Expand Down

0 comments on commit 85f0dda

Please sign in to comment.