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

Function ajaxExtend

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

Source from the content-addressed store, hash-verified

7629// that takes "flat" options (not to be deep extended)
7630// Fixes #9887
7631function ajaxExtend( target, src ) {
7632 var key, deep,
7633 flatOptions = jQuery.ajaxSettings.flatOptions || {};
7634
7635 for ( key in src ) {
7636 if ( src[ key ] !== undefined ) {
7637 ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
7638 }
7639 }
7640 if ( deep ) {
7641 jQuery.extend( true, target, deep );
7642 }
7643
7644 return target;
7645}
7646
7647/* Handles responses to an ajax request:
7648 * - finds the right dataType (mediates between content-type and expected dataType)

Callers 1

jquery-2.1.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected