Commit 6853370f authored by David Serduke's avatar David Serduke

Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to...

Fix #1905 bug where in IE the use of RegExp.test() was failing and needed to be replaced with String.match().
parent e2ef3df8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment