From: David Serduke Date: Fri, 16 Nov 2007 23:54:45 +0000 (+0000) Subject: Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to be repla... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=6853370fbb631a1d40d63c295626b7af6b0c7755;p=jquery.git Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to be replaced with String.match(). --- 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