I'm not sold on this. We were discussing the cloning of data recently,
it seems like this should be sufficient:
  .clone(true) - Clone events and data (which is reasonable,
considering that events are part of data)
  .clone(false) - Clone just elements (no data)

As far as removeID goes, it seems like this is simple enough without
an extra attribute:
  .clone().removeAttr("id")

--John



On Thu, Mar 5, 2009 at 2:45 AM, Cloudream <[email protected]> wrote:
> Enhance .clone()
> $(id).clone({
> event:false, //do not clone events
> data:true, //clone children's and it-self's data
> removeID:true //clear all clone elements 'ID' attribute.
> })
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to