Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to be replaced with String.match().
This commit is contained in:
parent
e2ef3df86d
commit
6853370fbb
|
@ -174,7 +174,7 @@ jQuery.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build temporary JSONP function
|
// 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++;
|
jsonp = "jsonp" + jsc++;
|
||||||
|
|
||||||
// Replace the =? sequence both in the query string and the data
|
// Replace the =? sequence both in the query string and the data
|
||||||
|
|
Loading…
Reference in a new issue