views:

202

answers:

0

when polling the server do i need to destroy the draggables and droppables before i re-instantiate the functionality? Basically every so often I run a function that updates a div and then i have the function run:

$(".dragMe").draggable({helper: 'clone', opacity: 0.50, appendTo: 'body', zIndex:4, addClasses: false}); 
    $(".drop").droppable({
      accept: ".dragMe",
      addClasses: false,
      hoverClass: 'dropHover',
      drop: moveJob
    });

is this overkill? do I just run that function once and be done with it or do I have to clear and re-init the drag-and-drop?