destroy method

void destroy ()

Destroy the component.

Implementation

void destroy() {
  hide();
  $element.off(".${_type}");
  $element.data.remove(_type);
}