Bug Tracker

Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#107 closed enhancement (fixed)

There should be a .clone()

Reported by: john Owned by:
Priority: minor Milestone: 1.0
Component: core Version: 1.0
Keywords: Cc:
Blocked by: Blocking:


If .appendTo(), and .prependTo() are going to be kept, there needs to be a .clone() function.

Change History (2)

comment:1 Changed 16 years ago by CBWhiz

Hack with latest SVN:

$.fn.clone = function() {

return this.pushStack(

jQuery.map( this,


return i.cloneNode(true);


, arguments );




comment:2 Changed 16 years ago by john

Priority: majorminor
Resolution: fixed
Status: newclosed

Added in SVN rev 213.

Note: See TracTickets for help on using tickets.