X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fxhr.js;h=929c99f9a06b8c341383ce639696d41013293a35;hp=94c6fe165383a9250dd5430347286bf279e11134;hb=22e28b01e60e87b2454f88ca128fb84916b13564;hpb=524bf39400e12db84e6857988d431c2c8ca7b2fb diff --git a/src/xhr.js b/src/xhr.js index 94c6fe1..929c99f 100644 --- a/src/xhr.js +++ b/src/xhr.js @@ -254,12 +254,14 @@ jQuery.xhr = function( _native ) { } else if ( current !== "*" && prev !== current ) { oneConv = conv1 = - dataConverters[ ( conversion = prev + " => " + current ) ] || - dataConverters[ "* => " + current ]; + dataConverters[ ( conversion = prev + " " + current ) ] || + dataConverters[ "* " + current ]; + + console.log( conversion ); if ( ! oneConv && prev !== "text" && current !== "text" ) { - conv1 = dataConverters[ prev + " => text" ] || dataConverters[ "* => text" ]; - conv2 = dataConverters[ "text => " + current ]; + conv1 = dataConverters[ prev + " text" ] || dataConverters[ "* text" ]; + conv2 = dataConverters[ "text " + current ]; } if ( oneConv || conv1 && conv2 ) { response = oneConv ? conv1( response ) : conv2( conv1( response ) );