JQuery UI - when to use destroy method in widgets

When I attach functionality to an element, do I need to call before removing it from the DOM or handling jQuery? .widgetName('destroy')

+1


source to share


1 answer


Try to use remove

.



I don't think this happens automatically, but again, I don't think you need to call the method destroy

as it event handlers

will be destroyed for you from the call to delete.

+4


source







All Articles