Fixed a typo with commit [6457].
This commit is contained in:
parent
7175b2ffab
commit
81985c7878
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ jQuery.extend({
|
||||||
// Handle JSONP Parameter Callbacks
|
// Handle JSONP Parameter Callbacks
|
||||||
if ( s.dataType == "jsonp" ) {
|
if ( s.dataType == "jsonp" ) {
|
||||||
if ( type == "GET" ) {
|
if ( type == "GET" ) {
|
||||||
if ( jsre.test( !s.url ) )
|
if ( !jsre.test( s.url ) )
|
||||||
s.url += (/\?/.test( s.url ) ? "&" : "?") + (s.jsonp || "callback") + "=?";
|
s.url += (/\?/.test( s.url ) ? "&" : "?") + (s.jsonp || "callback") + "=?";
|
||||||
} else if ( !s.data || !jsre.test(s.data) )
|
} else if ( !s.data || !jsre.test(s.data) )
|
||||||
s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
|
s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
|
||||||
|
|
Loading…
Reference in a new issue