]> source.dussan.org Git - jquery.git/commitdiff
$.extend deep now copies children's children, ect...
authorSean Catchpole <littlecooldude@gmail.com>
Tue, 8 Apr 2008 16:40:03 +0000 (16:40 +0000)
committerSean Catchpole <littlecooldude@gmail.com>
Tue, 8 Apr 2008 16:40:03 +0000 (16:40 +0000)
src/core.js

index de82d7742a7b7a29f282d3182d29ae22141fe96f..5690df16e6f336d3c66c33e6f350eb9abfff4ae9 100644 (file)
@@ -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 )