$('#$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

Reply via email to