MCPcopy Create free account
hub / github.com/idank/explainshell / ajaxExtend

Function ajaxExtend

explainshell/web/static/js/jquery.js:7525–7539  ·  view source on GitHub ↗
( target, src )

Source from the content-addressed store, hash-verified

7523// that takes "flat" options (not to be deep extended)
7524// Fixes #9887
7525function ajaxExtend( target, src ) {
7526 var deep, key,
7527 flatOptions = jQuery.ajaxSettings.flatOptions || {};
7528
7529 for ( key in src ) {
7530 if ( src[ key ] !== undefined ) {
7531 ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
7532 }
7533 }
7534 if ( deep ) {
7535 jQuery.extend( true, target, deep );
7536 }
7537
7538 return target;
7539}
7540
7541jQuery.fn.load = function( url, params, callback ) {
7542 if ( typeof url !== "string" && _load ) {

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected