destroy

Prepares the Gauge for safe removal from the DOM.

Detaches event handlers and removes data entries in order to avoid memory leaks.

Example

<div id="gauge"></div>
<script>
    $("#gauge").kendoCircularGauge({
        value: 50
    });
    setTimeout(function(){
        kendo.destroy($("#gauge"));
        $("#gauge").remove();
    },1000);
</script>
In this article