mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
style adherence
This commit is contained in:
parent
b0ea80e9fd
commit
2d1247a413
@ -41,7 +41,7 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
|
|||||||
if ( replaceInUrl ) {
|
if ( replaceInUrl ) {
|
||||||
s.url = url.replace( rjsonp, "$1" + callbackName );
|
s.url = url.replace( rjsonp, "$1" + callbackName );
|
||||||
} else if ( replaceInData ) {
|
} else if ( replaceInData ) {
|
||||||
s.data = data.replace( rjsonp,"$1" + callbackName );
|
s.data = data.replace( rjsonp, "$1" + callbackName );
|
||||||
} else if ( hasCallback ) {
|
} else if ( hasCallback ) {
|
||||||
s.url += ( rquestion.test( url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
|
s.url += ( rquestion.test( url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user