search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Is a "clear" required when calling again makeDraggable of items?

Asked by Chris
5 months ago.

Hello,

Using: DayPilot Pro for JavaScript 2019.4.4101

My jquery datatable refreshes on certain events or user requests.
Everytime it calls a function to loop items in datatable and does a "DayPilot.Scheduler.makeDraggable(item);"

Is a "clear" of the previously madeDraggable items required?
I haven't found a method. And can't see list of dp.draggable items.

Thx
Chris

Answer posted by Dan Letecky [DayPilot]
5 months ago.

The makeDraggable() method adds special event handlers (mousedown, touchstart) to the target DOM element but it doesn't link it to the Scheduler component.

It's not necessary to clean the elements explicitly. They will be garbage collected as soon as they are removed from the DOM.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.