MCPcopy Create free account
hub / github.com/JsAaron/jQuery / ajaxExtend

Function ajaxExtend

2.1.1/test/jquery-1.11.1.js:8657–8671  ·  view source on GitHub ↗
( target, src )

Source from the content-addressed store, hash-verified

8655// that takes "flat" options (not to be deep extended)
8656// Fixes #9887
8657function ajaxExtend( target, src ) {
8658 var deep, key,
8659 flatOptions = jQuery.ajaxSettings.flatOptions || {};
8660
8661 for ( key in src ) {
8662 if ( src[ key ] !== undefined ) {
8663 ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
8664 }
8665 }
8666 if ( deep ) {
8667 jQuery.extend( true, target, deep );
8668 }
8669
8670 return target;
8671}
8672
8673/* Handles responses to an ajax request:
8674 * - finds the right dataType (mediates between content-type and expected dataType)

Callers 1

jquery-1.11.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected