Skip to content

Commit 4515aba

Browse files
author
Sean Catchpole
committed
$.extend deep now copies children's children, ect...
1 parent dc7f8cf commit 4515aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ jQuery.extend = jQuery.fn.extend = function() {
595595

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

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

0 commit comments

Comments
 (0)