parent
831625c43e
commit
69f72761fa
|
@ -579,8 +579,11 @@ jQuery.extend = jQuery.fn.extend = function() {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Recurse if we're merging object values
|
// Recurse if we're merging object values
|
||||||
if ( deep && copy && typeof copy == "object" && src && !copy.nodeType )
|
if ( deep && copy && typeof copy == "object" && !copy.nodeType )
|
||||||
target[ name ] = jQuery.extend( deep, src, copy );
|
target[ name ] = jQuery.extend( deep,
|
||||||
|
// Never move original objects, clone them
|
||||||
|
src || ( copy.length != null ? [ ] : { } )
|
||||||
|
, copy );
|
||||||
|
|
||||||
// Don't bring in undefined values
|
// Don't bring in undefined values
|
||||||
else if ( copy !== undefined )
|
else if ( copy !== undefined )
|
||||||
|
|
Loading…
Reference in a new issue