destroy

public function destroy(s:Boolean):void
Destroys the editor instance by removing all events, element references or other resources that could leak memory. This method will be called automatically when the page is unloaded but you can also call it directly if you know what you are doing.

Params

Name Type Description
s Boolean Optional state if the destroy is an automatic destroy or user called one.