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

Function ajaxExtend

2.0.3/2.0.3.js:6990–7004  ·  view source on GitHub ↗
( target, src )

Source from the content-addressed store, hash-verified

6988// that takes "flat" options (not to be deep extended)
6989// Fixes #9887
6990 function ajaxExtend( target, src ) {
6991 var key, deep,
6992 flatOptions = jQuery.ajaxSettings.flatOptions || {};
6993
6994 for ( key in src ) {
6995 if ( src[ key ] !== undefined ) {
6996 ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
6997 }
6998 }
6999 if ( deep ) {
7000 jQuery.extend( true, target, deep );
7001 }
7002
7003 return target;
7004 }
7005
7006 jQuery.fn.load = function( url, params, callback ) {
7007 if ( typeof url !== "string" && _load ) {

Callers 1

2.0.3.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected