destroy

Prepares the Citation for safe removal from DOM. Detaches all event handlers, destroys internal components, and removes jQuery.data attributes to avoid memory leaks.

Important: This method does not remove the Citation element from DOM.

Example - destroy the widget

<span id="citation"></span>
<script>
$("#citation").kendoCitation({
    sources: [{ url: "https://example.com", title: "Example" }]
});
var citation = $("#citation").data("kendoCitation");
citation.destroy();
</script>
In this article
destroy
Not finding the help you need?
Contact Support