Fix for bug #1546 where a deep copy was attempted of DOM elements (which isn't needed).
This commit is contained in:
parent
9ac9aaeec3
commit
14b88f6019
2 changed files with 6 additions and 5 deletions
|
@ -534,7 +534,7 @@ jQuery.extend = jQuery.fn.extend = function() {
|
|||
continue;
|
||||
|
||||
// Recurse if we're merging object values
|
||||
if ( deep && typeof options[ name ] == "object" && target[ name ] )
|
||||
if ( deep && typeof options[ name ] == "object" && target[ name ] && !options[ name ].nodeType )
|
||||
jQuery.extend( target[ name ], options[ name ] );
|
||||
|
||||
// Don't bring in undefined values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue