No title Revision 653363656339 (Tue Feb 15 2011 at 23:57) - Diff Link to this snippet: https://friendpaste.com/6dZ6seCUQSphLsb9PL6udP Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 1234567891011121314151617181920 var httpData = $.httpData || function( xhr, type, s ) { // lifted from jq1.4.4 var ct = xhr.getResponseHeader("content-type") || "", xml = type === "xml" || !type && ct.indexOf("xml") >= 0, data = xml ? xhr.responseXML : xhr.responseText; if ( xml && data.documentElement.nodeName === "parsererror" ) { $.error( "parsererror" ); } if ( s && s.dataFilter ) { data = s.dataFilter( data, type ); } if ( typeof data === "string" ) { if ( type === "json" || !type && ct.indexOf("json") >= 0 ) { data = $.parseJSON( data ); } else if ( type === "script" || !type && ct.indexOf("javascript") >= 0 ) { $.globalEval( data ); } } return data; };