X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fxhr.js;h=f8d15c7d1d6b4cfee50a6728a8e9cc647493a375;hb=d303687815581987f75f2e40e833022fc25c8741;hp=1993e0b5d1fe4fb19c60483f5c504af157f4d269;hpb=11642ba20c10ced6363d81d6e3a0239ac10dab27;p=jquery.git diff --git a/src/xhr.js b/src/xhr.js index 1993e0b..f8d15c7 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 ) );