destroy

Prepares the Chip 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 Chip element from DOM.

Example

<span id="chip"></span>
<script>
    $("#chip").kendoChip({ label: 'Chip text' });
    var chip = $("#chip").data("kendoChip");
    chip.destroy();
</script>
In this article