]> source.dussan.org Git - jquery.git/commitdiff
Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to be repla...
authorDavid Serduke <davidserduke@gmail.com>
Fri, 16 Nov 2007 23:54:45 +0000 (23:54 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Fri, 16 Nov 2007 23:54:45 +0000 (23:54 +0000)
src/ajax.js

index 09aba1410777a959b356e1e1a742acae4e3820a8..225165a31de2f605856798f8596bbbbe628a0fda 100644 (file)
@@ -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