Skip to main content

Bug Tracker

Side navigation

#13892 closed bug (invalid)

Opened May 14, 2013 08:28AM UTC

Closed May 29, 2013 08:59AM UTC

$.extend deep copy not performed

Reported by: adamdarmanin@gmail.com Owned by: adamdarmanin@gmail.com
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

Attachments (0)
Change History (2)

Changed May 14, 2013 02:48PM UTC by rwaldron comment:1

owner: → adamdarmanin@gmail.com
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!

Changed May 29, 2013 08:59AM UTC by trac-o-bot comment:2

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!