Swapy
v1.0.3
  1. Methods
  2. Destroy

Calling swapy.destroy() will clean up any event listeners and any stored state associated with the instance.

When using a framework, it’s recommended to call it in the component’s destroy hook function.