#1177 new
Michael Morris

Element#deepClone

Reported by Michael Morris | December 2nd, 2010 @ 09:53 PM

Could a #deepClone method be added that is equivalent to Element#clone(true). I personally am NOT a fan of magic constants and that's what this amounts to. I also think it's bad clone(true) needs to persist for backwards compatibility of course - but I'd rather have the code self document. Just compare.

var e = $('someElement').clone(true);
var f = $('someElement').deepClone();

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Pages