destroy()


Destroy the instance.

Syntax
Selectable.destroy()

This will return the DOM to it's initial state before initialising.

You can reinitialise the instance by using the init() method.


const selectable = new Selectable();

// destroy the instance.
selectable.destroy();