thank you but about remove()? where do I use it> ----- Original Message ----- From: "KidsKilla .grin! wuz here" <[EMAIL PROTECTED]> To: <jquery-en@googlegroups.com> Sent: Thursday, January 17, 2008 9:14 AM Subject: [jQuery] Re: clone help
> $('#$id').remove().clone(true).appendTo('#verticals'); > is wrong. because of remove() (it kills everything because of memory IE > leaks). > you sould use this chain instead: > > $('#$id').appendTo('#verticals'); > > or somethin like that: > > $('#$id').hide().bla-bla.appendTo('#verticals').show(); > > 2008/1/17, Lionel Martelly <[EMAIL PROTECTED]>: >> >> I read somewhere that events must be bind when cloning so I remove the >> parent. Please how do I bind the context menu? >> >> $('#$id').contextMenu('chooser', { >> bindings: { >> 'vert': function(t) { >> $('#$id').remove().clone(true).appendTo('#verticals'); >> }, >> 'horiz': function(t) { >> $('#$id').remove().clone(true).appendTo('#horizontals');}, >> } >> }); >> >> I am also loosing the draggable/sortable. I do not know how to bind it. >> >> Thank you. >> >> > > > -- > Максим Игоревич Гришаев, > AstroStar.ru >