More code style fixes.
This commit is contained in:
parent
dd5bf42122
commit
ee22c8b34b
3 changed files with 10 additions and 11 deletions
|
@ -255,7 +255,7 @@ jQuery.extend({
|
||||||
|
|
||||||
// If options is not an object,
|
// If options is not an object,
|
||||||
// we simulate pre-1.5 signature
|
// we simulate pre-1.5 signature
|
||||||
if ( typeof( options ) !== "object" ) {
|
if ( typeof options !== "object" ) {
|
||||||
options = url;
|
options = url;
|
||||||
url = undefined;
|
url = undefined;
|
||||||
}
|
}
|
||||||
|
@ -702,7 +702,7 @@ function inspectPrefiltersOrTransports( structure, options, originalOptions, dat
|
||||||
selected = list[ i ]( options, originalOptions );
|
selected = list[ i ]( options, originalOptions );
|
||||||
// If we got redirected to a different dataType,
|
// If we got redirected to a different dataType,
|
||||||
// we add it and switch to the corresponding list
|
// we add it and switch to the corresponding list
|
||||||
if ( typeof( selected ) === "string" && selected !== dataType ) {
|
if ( typeof selected === "string" && selected !== dataType ) {
|
||||||
options.dataTypes.unshift( selected );
|
options.dataTypes.unshift( selected );
|
||||||
selected = inspectPrefiltersOrTransports(
|
selected = inspectPrefiltersOrTransports(
|
||||||
structure, options, originalOptions, selected, tested );
|
structure, options, originalOptions, selected, tested );
|
||||||
|
|
|
@ -12,10 +12,9 @@ jQuery.ajaxSetup({
|
||||||
});
|
});
|
||||||
|
|
||||||
// Detect, normalize options and install callbacks for jsonp requests
|
// Detect, normalize options and install callbacks for jsonp requests
|
||||||
// (dataIsString is used internally)
|
jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, dataIsString /* internal */ ) {
|
||||||
jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, dataIsString ) {
|
|
||||||
|
|
||||||
dataIsString = ( typeof( s.data ) === "string" );
|
dataIsString = ( typeof s.data === "string" );
|
||||||
|
|
||||||
if ( s.dataTypes[ 0 ] === "jsonp" ||
|
if ( s.dataTypes[ 0 ] === "jsonp" ||
|
||||||
originalSettings.jsonpCallback ||
|
originalSettings.jsonpCallback ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue