destroy()


Destroy the instance.

Syntax
Nestable.destroy()

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

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


const instance = new Nestable("#myList");

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