X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax.js;h=225165a31de2f605856798f8596bbbbe628a0fda;hb=6853370fbb631a1d40d63c295626b7af6b0c7755;hp=09aba1410777a959b356e1e1a742acae4e3820a8;hpb=80a26a326696599dad5b0bf88f8fa8e242e711e5;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 09aba141..225165a 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -174,7 +174,7 @@ jQuery.extend({ } // Build temporary JSONP function - if ( s.dataType == "json" && (s.data && jsre.test( s.data ) || s.url.match(jsre)) ) { + if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) { jsonp = "jsonp" + jsc++; // Replace the =? sequence both in the query string and the data