destroy()

Since: Editor 1.6

Destroy the Editor instance.
Please note - this property requires the Editor extension for DataTables.

Description

If you are working with a single page application, or otherwise creating and destroying Editor instances on a common based in a page, it is important to be able to keep tight control of the page's memory use. Once you no longer require an element it should be destroyed, allowing the memory to be used for something else. Editor instances are no different and this method provides that ability.

It will clean up any events added by Editor, fields and DOM elements.

Please note that if you have external references to the Editor instance, such as with Buttons, you will need to remove those references as well, otherwise the browser's garbage collector will not be able to free the memory used by Editor.

Type

destroy()

Destroy the Editor instance, cleaning up events, fields and the DOM.

Returns:

undefined: Nothing is returned by this method

Related

The following options are directly related and may also be useful in your application development.