From 6853370fbb631a1d40d63c295626b7af6b0c7755 Mon Sep 17 00:00:00 2001 From: David Serduke Date: Fri, 16 Nov 2007 23:54:45 +0000 Subject: [PATCH] Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to be replaced with String.match(). --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4