Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13892 closed bug (invalid)

$.extend deep copy not performed

Reported by: adamdarmanin@… Owned by: adamdarmanin@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

Link to JSFiddle: http://jsfiddle.net/adamd1985/dN4QM/2/

Using the latest JQuery library from: http://code.jquery.com/jquery-1.9.1.js. Occurs on all latest browsers and O/Ss

With a plain object created by javascript new(), we noticed that jquery.extend() doesn't perform a deep copy of any other plain objects encountered within the properties of this parent object and instead copies the reference. This occurs even when we set the deep copy argument to true.

Is this how it should function? This might be related to: http://bugs.jquery.com/ticket/11557

Change History (2)

comment:1 Changed 10 years ago by Rick Waldron

Owner: set to adamdarmanin@…
Status: newpending

Thanks for taking the time to contribute to the jQuery project!

Your test case is definitely appreciated, but could you reduce it to the single smallest piece of code that demonstrates the bug you're reporting? Thanks!

comment:2 Changed 10 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.