instance method Element#purge

View source on GitHub →

Element#purge() → null

Removes all event listeners and storage keys from an element.

To be used just before removing an element from the page.

This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.