destroy

Prepares the Reasoning for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks.

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

Example - destroy the widget

<div id="reasoning"></div>
<script>
$("#reasoning").kendoReasoning({ label: "Thinking" });
var reasoning = $("#reasoning").data("kendoReasoning");
reasoning.destroy();
</script>
In this article
destroy
Not finding the help you need?
Contact Support