Skip to content
Permalink
Browse files
$.extend deep now copies children's children, ect...
  • Loading branch information
Sean Catchpole committed Apr 8, 2008
1 parent dc7f8cf commit 4515aba79c56b28d9cf7bae902c71fb38763f693
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -595,7 +595,7 @@ jQuery.extend = jQuery.fn.extend = function() {

// Recurse if we're merging object values
if ( deep && options[ name ] && typeof options[ name ] == "object" && target[ name ] && !options[ name ].nodeType )
target[ name ] = jQuery.extend( target[ name ], options[ name ] );
target[ name ] = jQuery.extend( deep, target[ name ], options[ name ] );

// Don't bring in undefined values
else if ( options[ name ] != undefined )

0 comments on commit 4515aba

Please sign in to comment.