use directories for structure
This commit is contained in:
21
node_modules/jquery/src/ajax.js
generated
vendored
21
node_modules/jquery/src/ajax.js
generated
vendored
@@ -8,7 +8,7 @@ define( [
|
||||
"./ajax/var/rquery",
|
||||
|
||||
"./core/init",
|
||||
"./ajax/parseXML",
|
||||
"./core/parseXML",
|
||||
"./event/trigger",
|
||||
"./deferred",
|
||||
"./serialize" // jQuery.param
|
||||
@@ -610,7 +610,8 @@ jQuery.extend( {
|
||||
// Add or update anti-cache param if needed
|
||||
if ( s.cache === false ) {
|
||||
cacheURL = cacheURL.replace( rantiCache, "$1" );
|
||||
uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached;
|
||||
uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce.guid++ ) +
|
||||
uncached;
|
||||
}
|
||||
|
||||
// Put hash and anti-cache on the URL that will be requested (gh-1732)
|
||||
@@ -743,6 +744,11 @@ jQuery.extend( {
|
||||
response = ajaxHandleResponses( s, jqXHR, responses );
|
||||
}
|
||||
|
||||
// Use a noop converter for missing script
|
||||
if ( !isSuccess && jQuery.inArray( "script", s.dataTypes ) > -1 ) {
|
||||
s.converters[ "text script" ] = function() {};
|
||||
}
|
||||
|
||||
// Convert no matter what (that way responseXXX fields are always set)
|
||||
response = ajaxConvert( s, response, jqXHR, isSuccess );
|
||||
|
||||
@@ -833,7 +839,7 @@ jQuery.extend( {
|
||||
}
|
||||
} );
|
||||
|
||||
jQuery.each( [ "get", "post" ], function( i, method ) {
|
||||
jQuery.each( [ "get", "post" ], function( _i, method ) {
|
||||
jQuery[ method ] = function( url, data, callback, type ) {
|
||||
|
||||
// Shift arguments if data argument was omitted
|
||||
@@ -854,5 +860,14 @@ jQuery.each( [ "get", "post" ], function( i, method ) {
|
||||
};
|
||||
} );
|
||||
|
||||
jQuery.ajaxPrefilter( function( s ) {
|
||||
var i;
|
||||
for ( i in s.headers ) {
|
||||
if ( i.toLowerCase() === "content-type" ) {
|
||||
s.contentType = s.headers[ i ] || "";
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
return jQuery;
|
||||
} );
|
||||
|
Reference in New Issue
Block a user