Deep copy - $.extend(true,...,...)
Hi all,
There is a bug for me in method $.extend on deep copy of an object.
The original code is:
// 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 ] );
For me is:
// Recurse if we're merging object values
if ( deep && options[ name ] && typeof options[ name ] == "object" && !
options[ name ].nodeType )
target[ name ] = jQuery.extend(deep,target[ name ],
options[ name ] );
Wrong?