Edit File by line
/home/barbar84/www/wp-inclu.../js/jquery
File: jquery.js
[9000] Fix | Delete
var
[9001] Fix | Delete
r20 = /%20/g,
[9002] Fix | Delete
rhash = /#.*$/,
[9003] Fix | Delete
rantiCache = /([?&])_=[^&]*/,
[9004] Fix | Delete
rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
[9005] Fix | Delete
[9006] Fix | Delete
// #7653, #8125, #8152: local protocol detection
[9007] Fix | Delete
rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
[9008] Fix | Delete
rnoContent = /^(?:GET|HEAD)$/,
[9009] Fix | Delete
rprotocol = /^\/\//,
[9010] Fix | Delete
[9011] Fix | Delete
/* Prefilters
[9012] Fix | Delete
* 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
[9013] Fix | Delete
* 2) These are called:
[9014] Fix | Delete
* - BEFORE asking for a transport
[9015] Fix | Delete
* - AFTER param serialization (s.data is a string if s.processData is true)
[9016] Fix | Delete
* 3) key is the dataType
[9017] Fix | Delete
* 4) the catchall symbol "*" can be used
[9018] Fix | Delete
* 5) execution will start with transport dataType and THEN continue down to "*" if needed
[9019] Fix | Delete
*/
[9020] Fix | Delete
prefilters = {},
[9021] Fix | Delete
[9022] Fix | Delete
/* Transports bindings
[9023] Fix | Delete
* 1) key is the dataType
[9024] Fix | Delete
* 2) the catchall symbol "*" can be used
[9025] Fix | Delete
* 3) selection will start with transport dataType and THEN go to "*" if needed
[9026] Fix | Delete
*/
[9027] Fix | Delete
transports = {},
[9028] Fix | Delete
[9029] Fix | Delete
// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
[9030] Fix | Delete
allTypes = "*/".concat( "*" ),
[9031] Fix | Delete
[9032] Fix | Delete
// Anchor tag for parsing the document origin
[9033] Fix | Delete
originAnchor = document.createElement( "a" );
[9034] Fix | Delete
originAnchor.href = location.href;
[9035] Fix | Delete
[9036] Fix | Delete
// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
[9037] Fix | Delete
function addToPrefiltersOrTransports( structure ) {
[9038] Fix | Delete
[9039] Fix | Delete
// dataTypeExpression is optional and defaults to "*"
[9040] Fix | Delete
return function( dataTypeExpression, func ) {
[9041] Fix | Delete
[9042] Fix | Delete
if ( typeof dataTypeExpression !== "string" ) {
[9043] Fix | Delete
func = dataTypeExpression;
[9044] Fix | Delete
dataTypeExpression = "*";
[9045] Fix | Delete
}
[9046] Fix | Delete
[9047] Fix | Delete
var dataType,
[9048] Fix | Delete
i = 0,
[9049] Fix | Delete
dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];
[9050] Fix | Delete
[9051] Fix | Delete
if ( isFunction( func ) ) {
[9052] Fix | Delete
[9053] Fix | Delete
// For each dataType in the dataTypeExpression
[9054] Fix | Delete
while ( ( dataType = dataTypes[ i++ ] ) ) {
[9055] Fix | Delete
[9056] Fix | Delete
// Prepend if requested
[9057] Fix | Delete
if ( dataType[ 0 ] === "+" ) {
[9058] Fix | Delete
dataType = dataType.slice( 1 ) || "*";
[9059] Fix | Delete
( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
[9060] Fix | Delete
[9061] Fix | Delete
// Otherwise append
[9062] Fix | Delete
} else {
[9063] Fix | Delete
( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
[9064] Fix | Delete
}
[9065] Fix | Delete
}
[9066] Fix | Delete
}
[9067] Fix | Delete
};
[9068] Fix | Delete
}
[9069] Fix | Delete
[9070] Fix | Delete
// Base inspection function for prefilters and transports
[9071] Fix | Delete
function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
[9072] Fix | Delete
[9073] Fix | Delete
var inspected = {},
[9074] Fix | Delete
seekingTransport = ( structure === transports );
[9075] Fix | Delete
[9076] Fix | Delete
function inspect( dataType ) {
[9077] Fix | Delete
var selected;
[9078] Fix | Delete
inspected[ dataType ] = true;
[9079] Fix | Delete
jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
[9080] Fix | Delete
var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
[9081] Fix | Delete
if ( typeof dataTypeOrTransport === "string" &&
[9082] Fix | Delete
!seekingTransport && !inspected[ dataTypeOrTransport ] ) {
[9083] Fix | Delete
[9084] Fix | Delete
options.dataTypes.unshift( dataTypeOrTransport );
[9085] Fix | Delete
inspect( dataTypeOrTransport );
[9086] Fix | Delete
return false;
[9087] Fix | Delete
} else if ( seekingTransport ) {
[9088] Fix | Delete
return !( selected = dataTypeOrTransport );
[9089] Fix | Delete
}
[9090] Fix | Delete
} );
[9091] Fix | Delete
return selected;
[9092] Fix | Delete
}
[9093] Fix | Delete
[9094] Fix | Delete
return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
[9095] Fix | Delete
}
[9096] Fix | Delete
[9097] Fix | Delete
// A special extend for ajax options
[9098] Fix | Delete
// that takes "flat" options (not to be deep extended)
[9099] Fix | Delete
// Fixes #9887
[9100] Fix | Delete
function ajaxExtend( target, src ) {
[9101] Fix | Delete
var key, deep,
[9102] Fix | Delete
flatOptions = jQuery.ajaxSettings.flatOptions || {};
[9103] Fix | Delete
[9104] Fix | Delete
for ( key in src ) {
[9105] Fix | Delete
if ( src[ key ] !== undefined ) {
[9106] Fix | Delete
( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
[9107] Fix | Delete
}
[9108] Fix | Delete
}
[9109] Fix | Delete
if ( deep ) {
[9110] Fix | Delete
jQuery.extend( true, target, deep );
[9111] Fix | Delete
}
[9112] Fix | Delete
[9113] Fix | Delete
return target;
[9114] Fix | Delete
}
[9115] Fix | Delete
[9116] Fix | Delete
/* Handles responses to an ajax request:
[9117] Fix | Delete
* - finds the right dataType (mediates between content-type and expected dataType)
[9118] Fix | Delete
* - returns the corresponding response
[9119] Fix | Delete
*/
[9120] Fix | Delete
function ajaxHandleResponses( s, jqXHR, responses ) {
[9121] Fix | Delete
[9122] Fix | Delete
var ct, type, finalDataType, firstDataType,
[9123] Fix | Delete
contents = s.contents,
[9124] Fix | Delete
dataTypes = s.dataTypes;
[9125] Fix | Delete
[9126] Fix | Delete
// Remove auto dataType and get content-type in the process
[9127] Fix | Delete
while ( dataTypes[ 0 ] === "*" ) {
[9128] Fix | Delete
dataTypes.shift();
[9129] Fix | Delete
if ( ct === undefined ) {
[9130] Fix | Delete
ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
[9131] Fix | Delete
}
[9132] Fix | Delete
}
[9133] Fix | Delete
[9134] Fix | Delete
// Check if we're dealing with a known content-type
[9135] Fix | Delete
if ( ct ) {
[9136] Fix | Delete
for ( type in contents ) {
[9137] Fix | Delete
if ( contents[ type ] && contents[ type ].test( ct ) ) {
[9138] Fix | Delete
dataTypes.unshift( type );
[9139] Fix | Delete
break;
[9140] Fix | Delete
}
[9141] Fix | Delete
}
[9142] Fix | Delete
}
[9143] Fix | Delete
[9144] Fix | Delete
// Check to see if we have a response for the expected dataType
[9145] Fix | Delete
if ( dataTypes[ 0 ] in responses ) {
[9146] Fix | Delete
finalDataType = dataTypes[ 0 ];
[9147] Fix | Delete
} else {
[9148] Fix | Delete
[9149] Fix | Delete
// Try convertible dataTypes
[9150] Fix | Delete
for ( type in responses ) {
[9151] Fix | Delete
if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
[9152] Fix | Delete
finalDataType = type;
[9153] Fix | Delete
break;
[9154] Fix | Delete
}
[9155] Fix | Delete
if ( !firstDataType ) {
[9156] Fix | Delete
firstDataType = type;
[9157] Fix | Delete
}
[9158] Fix | Delete
}
[9159] Fix | Delete
[9160] Fix | Delete
// Or just use first one
[9161] Fix | Delete
finalDataType = finalDataType || firstDataType;
[9162] Fix | Delete
}
[9163] Fix | Delete
[9164] Fix | Delete
// If we found a dataType
[9165] Fix | Delete
// We add the dataType to the list if needed
[9166] Fix | Delete
// and return the corresponding response
[9167] Fix | Delete
if ( finalDataType ) {
[9168] Fix | Delete
if ( finalDataType !== dataTypes[ 0 ] ) {
[9169] Fix | Delete
dataTypes.unshift( finalDataType );
[9170] Fix | Delete
}
[9171] Fix | Delete
return responses[ finalDataType ];
[9172] Fix | Delete
}
[9173] Fix | Delete
}
[9174] Fix | Delete
[9175] Fix | Delete
/* Chain conversions given the request and the original response
[9176] Fix | Delete
* Also sets the responseXXX fields on the jqXHR instance
[9177] Fix | Delete
*/
[9178] Fix | Delete
function ajaxConvert( s, response, jqXHR, isSuccess ) {
[9179] Fix | Delete
var conv2, current, conv, tmp, prev,
[9180] Fix | Delete
converters = {},
[9181] Fix | Delete
[9182] Fix | Delete
// Work with a copy of dataTypes in case we need to modify it for conversion
[9183] Fix | Delete
dataTypes = s.dataTypes.slice();
[9184] Fix | Delete
[9185] Fix | Delete
// Create converters map with lowercased keys
[9186] Fix | Delete
if ( dataTypes[ 1 ] ) {
[9187] Fix | Delete
for ( conv in s.converters ) {
[9188] Fix | Delete
converters[ conv.toLowerCase() ] = s.converters[ conv ];
[9189] Fix | Delete
}
[9190] Fix | Delete
}
[9191] Fix | Delete
[9192] Fix | Delete
current = dataTypes.shift();
[9193] Fix | Delete
[9194] Fix | Delete
// Convert to each sequential dataType
[9195] Fix | Delete
while ( current ) {
[9196] Fix | Delete
[9197] Fix | Delete
if ( s.responseFields[ current ] ) {
[9198] Fix | Delete
jqXHR[ s.responseFields[ current ] ] = response;
[9199] Fix | Delete
}
[9200] Fix | Delete
[9201] Fix | Delete
// Apply the dataFilter if provided
[9202] Fix | Delete
if ( !prev && isSuccess && s.dataFilter ) {
[9203] Fix | Delete
response = s.dataFilter( response, s.dataType );
[9204] Fix | Delete
}
[9205] Fix | Delete
[9206] Fix | Delete
prev = current;
[9207] Fix | Delete
current = dataTypes.shift();
[9208] Fix | Delete
[9209] Fix | Delete
if ( current ) {
[9210] Fix | Delete
[9211] Fix | Delete
// There's only work to do if current dataType is non-auto
[9212] Fix | Delete
if ( current === "*" ) {
[9213] Fix | Delete
[9214] Fix | Delete
current = prev;
[9215] Fix | Delete
[9216] Fix | Delete
// Convert response if prev dataType is non-auto and differs from current
[9217] Fix | Delete
} else if ( prev !== "*" && prev !== current ) {
[9218] Fix | Delete
[9219] Fix | Delete
// Seek a direct converter
[9220] Fix | Delete
conv = converters[ prev + " " + current ] || converters[ "* " + current ];
[9221] Fix | Delete
[9222] Fix | Delete
// If none found, seek a pair
[9223] Fix | Delete
if ( !conv ) {
[9224] Fix | Delete
for ( conv2 in converters ) {
[9225] Fix | Delete
[9226] Fix | Delete
// If conv2 outputs current
[9227] Fix | Delete
tmp = conv2.split( " " );
[9228] Fix | Delete
if ( tmp[ 1 ] === current ) {
[9229] Fix | Delete
[9230] Fix | Delete
// If prev can be converted to accepted input
[9231] Fix | Delete
conv = converters[ prev + " " + tmp[ 0 ] ] ||
[9232] Fix | Delete
converters[ "* " + tmp[ 0 ] ];
[9233] Fix | Delete
if ( conv ) {
[9234] Fix | Delete
[9235] Fix | Delete
// Condense equivalence converters
[9236] Fix | Delete
if ( conv === true ) {
[9237] Fix | Delete
conv = converters[ conv2 ];
[9238] Fix | Delete
[9239] Fix | Delete
// Otherwise, insert the intermediate dataType
[9240] Fix | Delete
} else if ( converters[ conv2 ] !== true ) {
[9241] Fix | Delete
current = tmp[ 0 ];
[9242] Fix | Delete
dataTypes.unshift( tmp[ 1 ] );
[9243] Fix | Delete
}
[9244] Fix | Delete
break;
[9245] Fix | Delete
}
[9246] Fix | Delete
}
[9247] Fix | Delete
}
[9248] Fix | Delete
}
[9249] Fix | Delete
[9250] Fix | Delete
// Apply converter (if not an equivalence)
[9251] Fix | Delete
if ( conv !== true ) {
[9252] Fix | Delete
[9253] Fix | Delete
// Unless errors are allowed to bubble, catch and return them
[9254] Fix | Delete
if ( conv && s.throws ) {
[9255] Fix | Delete
response = conv( response );
[9256] Fix | Delete
} else {
[9257] Fix | Delete
try {
[9258] Fix | Delete
response = conv( response );
[9259] Fix | Delete
} catch ( e ) {
[9260] Fix | Delete
return {
[9261] Fix | Delete
state: "parsererror",
[9262] Fix | Delete
error: conv ? e : "No conversion from " + prev + " to " + current
[9263] Fix | Delete
};
[9264] Fix | Delete
}
[9265] Fix | Delete
}
[9266] Fix | Delete
}
[9267] Fix | Delete
}
[9268] Fix | Delete
}
[9269] Fix | Delete
}
[9270] Fix | Delete
[9271] Fix | Delete
return { state: "success", data: response };
[9272] Fix | Delete
}
[9273] Fix | Delete
[9274] Fix | Delete
jQuery.extend( {
[9275] Fix | Delete
[9276] Fix | Delete
// Counter for holding the number of active queries
[9277] Fix | Delete
active: 0,
[9278] Fix | Delete
[9279] Fix | Delete
// Last-Modified header cache for next request
[9280] Fix | Delete
lastModified: {},
[9281] Fix | Delete
etag: {},
[9282] Fix | Delete
[9283] Fix | Delete
ajaxSettings: {
[9284] Fix | Delete
url: location.href,
[9285] Fix | Delete
type: "GET",
[9286] Fix | Delete
isLocal: rlocalProtocol.test( location.protocol ),
[9287] Fix | Delete
global: true,
[9288] Fix | Delete
processData: true,
[9289] Fix | Delete
async: true,
[9290] Fix | Delete
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
[9291] Fix | Delete
[9292] Fix | Delete
/*
[9293] Fix | Delete
timeout: 0,
[9294] Fix | Delete
data: null,
[9295] Fix | Delete
dataType: null,
[9296] Fix | Delete
username: null,
[9297] Fix | Delete
password: null,
[9298] Fix | Delete
cache: null,
[9299] Fix | Delete
throws: false,
[9300] Fix | Delete
traditional: false,
[9301] Fix | Delete
headers: {},
[9302] Fix | Delete
*/
[9303] Fix | Delete
[9304] Fix | Delete
accepts: {
[9305] Fix | Delete
"*": allTypes,
[9306] Fix | Delete
text: "text/plain",
[9307] Fix | Delete
html: "text/html",
[9308] Fix | Delete
xml: "application/xml, text/xml",
[9309] Fix | Delete
json: "application/json, text/javascript"
[9310] Fix | Delete
},
[9311] Fix | Delete
[9312] Fix | Delete
contents: {
[9313] Fix | Delete
xml: /\bxml\b/,
[9314] Fix | Delete
html: /\bhtml/,
[9315] Fix | Delete
json: /\bjson\b/
[9316] Fix | Delete
},
[9317] Fix | Delete
[9318] Fix | Delete
responseFields: {
[9319] Fix | Delete
xml: "responseXML",
[9320] Fix | Delete
text: "responseText",
[9321] Fix | Delete
json: "responseJSON"
[9322] Fix | Delete
},
[9323] Fix | Delete
[9324] Fix | Delete
// Data converters
[9325] Fix | Delete
// Keys separate source (or catchall "*") and destination types with a single space
[9326] Fix | Delete
converters: {
[9327] Fix | Delete
[9328] Fix | Delete
// Convert anything to text
[9329] Fix | Delete
"* text": String,
[9330] Fix | Delete
[9331] Fix | Delete
// Text to html (true = no transformation)
[9332] Fix | Delete
"text html": true,
[9333] Fix | Delete
[9334] Fix | Delete
// Evaluate text as a json expression
[9335] Fix | Delete
"text json": JSON.parse,
[9336] Fix | Delete
[9337] Fix | Delete
// Parse text as xml
[9338] Fix | Delete
"text xml": jQuery.parseXML
[9339] Fix | Delete
},
[9340] Fix | Delete
[9341] Fix | Delete
// For options that shouldn't be deep extended:
[9342] Fix | Delete
// you can add your own custom options here if
[9343] Fix | Delete
// and when you create one that shouldn't be
[9344] Fix | Delete
// deep extended (see ajaxExtend)
[9345] Fix | Delete
flatOptions: {
[9346] Fix | Delete
url: true,
[9347] Fix | Delete
context: true
[9348] Fix | Delete
}
[9349] Fix | Delete
},
[9350] Fix | Delete
[9351] Fix | Delete
// Creates a full fledged settings object into target
[9352] Fix | Delete
// with both ajaxSettings and settings fields.
[9353] Fix | Delete
// If target is omitted, writes into ajaxSettings.
[9354] Fix | Delete
ajaxSetup: function( target, settings ) {
[9355] Fix | Delete
return settings ?
[9356] Fix | Delete
[9357] Fix | Delete
// Building a settings object
[9358] Fix | Delete
ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
[9359] Fix | Delete
[9360] Fix | Delete
// Extending ajaxSettings
[9361] Fix | Delete
ajaxExtend( jQuery.ajaxSettings, target );
[9362] Fix | Delete
},
[9363] Fix | Delete
[9364] Fix | Delete
ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
[9365] Fix | Delete
ajaxTransport: addToPrefiltersOrTransports( transports ),
[9366] Fix | Delete
[9367] Fix | Delete
// Main method
[9368] Fix | Delete
ajax: function( url, options ) {
[9369] Fix | Delete
[9370] Fix | Delete
// If url is an object, simulate pre-1.5 signature
[9371] Fix | Delete
if ( typeof url === "object" ) {
[9372] Fix | Delete
options = url;
[9373] Fix | Delete
url = undefined;
[9374] Fix | Delete
}
[9375] Fix | Delete
[9376] Fix | Delete
// Force options to be an object
[9377] Fix | Delete
options = options || {};
[9378] Fix | Delete
[9379] Fix | Delete
var transport,
[9380] Fix | Delete
[9381] Fix | Delete
// URL without anti-cache param
[9382] Fix | Delete
cacheURL,
[9383] Fix | Delete
[9384] Fix | Delete
// Response headers
[9385] Fix | Delete
responseHeadersString,
[9386] Fix | Delete
responseHeaders,
[9387] Fix | Delete
[9388] Fix | Delete
// timeout handle
[9389] Fix | Delete
timeoutTimer,
[9390] Fix | Delete
[9391] Fix | Delete
// Url cleanup var
[9392] Fix | Delete
urlAnchor,
[9393] Fix | Delete
[9394] Fix | Delete
// Request state (becomes false upon send and true upon completion)
[9395] Fix | Delete
completed,
[9396] Fix | Delete
[9397] Fix | Delete
// To know if global events are to be dispatched
[9398] Fix | Delete
fireGlobals,
[9399] Fix | Delete
[9400] Fix | Delete
// Loop variable
[9401] Fix | Delete
i,
[9402] Fix | Delete
[9403] Fix | Delete
// uncached part of the url
[9404] Fix | Delete
uncached,
[9405] Fix | Delete
[9406] Fix | Delete
// Create the final options object
[9407] Fix | Delete
s = jQuery.ajaxSetup( {}, options ),
[9408] Fix | Delete
[9409] Fix | Delete
// Callbacks context
[9410] Fix | Delete
callbackContext = s.context || s,
[9411] Fix | Delete
[9412] Fix | Delete
// Context for global events is callbackContext if it is a DOM node or jQuery collection
[9413] Fix | Delete
globalEventContext = s.context &&
[9414] Fix | Delete
( callbackContext.nodeType || callbackContext.jquery ) ?
[9415] Fix | Delete
jQuery( callbackContext ) :
[9416] Fix | Delete
jQuery.event,
[9417] Fix | Delete
[9418] Fix | Delete
// Deferreds
[9419] Fix | Delete
deferred = jQuery.Deferred(),
[9420] Fix | Delete
completeDeferred = jQuery.Callbacks( "once memory" ),
[9421] Fix | Delete
[9422] Fix | Delete
// Status-dependent callbacks
[9423] Fix | Delete
statusCode = s.statusCode || {},
[9424] Fix | Delete
[9425] Fix | Delete
// Headers (they are sent all at once)
[9426] Fix | Delete
requestHeaders = {},
[9427] Fix | Delete
requestHeadersNames = {},
[9428] Fix | Delete
[9429] Fix | Delete
// Default abort message
[9430] Fix | Delete
strAbort = "canceled",
[9431] Fix | Delete
[9432] Fix | Delete
// Fake xhr
[9433] Fix | Delete
jqXHR = {
[9434] Fix | Delete
readyState: 0,
[9435] Fix | Delete
[9436] Fix | Delete
// Builds headers hashtable if needed
[9437] Fix | Delete
getResponseHeader: function( key ) {
[9438] Fix | Delete
var match;
[9439] Fix | Delete
if ( completed ) {
[9440] Fix | Delete
if ( !responseHeaders ) {
[9441] Fix | Delete
responseHeaders = {};
[9442] Fix | Delete
while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
[9443] Fix | Delete
responseHeaders[ match[ 1 ].toLowerCase() + " " ] =
[9444] Fix | Delete
( responseHeaders[ match[ 1 ].toLowerCase() + " " ] || [] )
[9445] Fix | Delete
.concat( match[ 2 ] );
[9446] Fix | Delete
}
[9447] Fix | Delete
}
[9448] Fix | Delete
match = responseHeaders[ key.toLowerCase() + " " ];
[9449] Fix | Delete
}
[9450] Fix | Delete
return match == null ? null : match.join( ", " );
[9451] Fix | Delete
},
[9452] Fix | Delete
[9453] Fix | Delete
// Raw string
[9454] Fix | Delete
getAllResponseHeaders: function() {
[9455] Fix | Delete
return completed ? responseHeadersString : null;
[9456] Fix | Delete
},
[9457] Fix | Delete
[9458] Fix | Delete
// Caches the header
[9459] Fix | Delete
setRequestHeader: function( name, value ) {
[9460] Fix | Delete
if ( completed == null ) {
[9461] Fix | Delete
name = requestHeadersNames[ name.toLowerCase() ] =
[9462] Fix | Delete
requestHeadersNames[ name.toLowerCase() ] || name;
[9463] Fix | Delete
requestHeaders[ name ] = value;
[9464] Fix | Delete
}
[9465] Fix | Delete
return this;
[9466] Fix | Delete
},
[9467] Fix | Delete
[9468] Fix | Delete
// Overrides response content-type header
[9469] Fix | Delete
overrideMimeType: function( type ) {
[9470] Fix | Delete
if ( completed == null ) {
[9471] Fix | Delete
s.mimeType = type;
[9472] Fix | Delete
}
[9473] Fix | Delete
return this;
[9474] Fix | Delete
},
[9475] Fix | Delete
[9476] Fix | Delete
// Status-dependent callbacks
[9477] Fix | Delete
statusCode: function( map ) {
[9478] Fix | Delete
var code;
[9479] Fix | Delete
if ( map ) {
[9480] Fix | Delete
if ( completed ) {
[9481] Fix | Delete
[9482] Fix | Delete
// Execute the appropriate callbacks
[9483] Fix | Delete
jqXHR.always( map[ jqXHR.status ] );
[9484] Fix | Delete
} else {
[9485] Fix | Delete
[9486] Fix | Delete
// Lazy-add the new callbacks in a way that preserves old ones
[9487] Fix | Delete
for ( code in map ) {
[9488] Fix | Delete
statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
[9489] Fix | Delete
}
[9490] Fix | Delete
}
[9491] Fix | Delete
}
[9492] Fix | Delete
return this;
[9493] Fix | Delete
},
[9494] Fix | Delete
[9495] Fix | Delete
// Cancel the request
[9496] Fix | Delete
abort: function( statusText ) {
[9497] Fix | Delete
var finalText = statusText || strAbort;
[9498] Fix | Delete
if ( transport ) {
[9499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function