From: jaubourg Date: Sat, 25 Dec 2010 22:00:25 +0000 (+0100) Subject: Revised logic in data conversion to account for when dataFilter modifies the dataType... X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=85f0dda56289ed6c044dadb3a42b1a4d2ddb0891 Revised logic in data conversion to account for when dataFilter modifies the dataTypes list. --- diff --git a/src/ajax.js b/src/ajax.js index 9f8e238..33c3645 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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