common.destroy

Destroys the widget and removes it from the global w2ui object
destroy()
No arguments

Description

This method completely destroys the widget by cleaning up all associated objects, unmounting the widget, removing it from the global w2ui object, and cleaning up event handlers. It triggers the 'destroy' event before and after destruction. The method returns true if the widget was successfully destroyed, false if the widget was not found in the global w2ui object.

User Comments

comments powered by Disqus