]> source.dussan.org Git - jquery.git/commitdiff
Revised logic in data conversion to account for when dataFilter modifies the dataType...
authorjaubourg <j@ubourg.net>
Sat, 25 Dec 2010 22:00:25 +0000 (23:00 +0100)
committerjaubourg <j@ubourg.net>
Fri, 31 Dec 2010 03:13:42 +0000 (04:13 +0100)
src/ajax.js

index 347273d15d2c9ce079067b7ce3d5f31c8e26cc54..7c0e1018d7bd151536ad875463a0c6002d6ac76a 100644 (file)
@@ -415,6 +415,8 @@ jQuery.extend({
                                                        
                                                        if ( i ) {
                                                                
+                                                               prev = dataTypes[ i - 1 ];
+                                                               
                                                                if ( prev !== "*" && current !== "*" && prev !== current ) {
                                                                
                                                                        oneConv = conv1 = 
@@ -440,8 +442,6 @@ jQuery.extend({
                                                                response = s.dataFilter( response );
                                                                dataTypes = s.dataTypes;
                                                        }
-                                                       
-                                                       prev = current;
                                                }
                
                                                // We have a real success