Skip to main content

Bug Tracker

Side navigation

#107 closed enhancement (fixed)

Opened July 27, 2006 02:23PM UTC

Closed August 17, 2006 05:15AM UTC

Last modified June 21, 2007 05:02AM UTC

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:
Description

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

Attachments (0)
Change History (2)

Changed August 17, 2006 04:36AM UTC by CBWhiz comment:1

Hack with latest SVN:

$.fn.clone = function() {

return this.pushStack(

jQuery.map( this,

function(i){

return i.cloneNode(true);

})

, arguments );

};

Usage:

$('#the_tr').clone().appendTo('#destination_table');

Changed August 17, 2006 05:15AM UTC by john comment:2

priority: majorminor
resolution: → fixed
status: newclosed

Added in SVN rev 213.