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").kendoLinearGauge({
pointer: {
value: 30
},
scale: {
min: 0,
max: 50
}
});
var gauge = $("#gauge").data("kendoLinearGauge");
gauge.destroy();
</script>
In this article