destroy
Prepares the Rating for safe removal from DOM. Detaches all event handlers and removes jQuery.data
attributes to avoid memory leaks.
The
destroy
method does not remove the Rating elements from DOM.
Example
<input id="rating" />
<script>
var ratingInstance = $("#rating").kendoRating().data("kendoRating");
ratingInstance.destroy();
</script>