Newer Version Available

This content describes an older version of this product. View Latest

autoDestroy()

Sets a flag to tell the rendering service whether or not to destroy this component when it is removed from its rendering facet.

Signature

autoDestroy(Boolean destroy)

Parameters

destroy
Type: Boolean
Default is true, which marks the component to be destroyed when it’s orphaned. Set to false to keep a reference to a component after it has been unrendered or removed from a parent facet. We don't recommend setting the value to false. If you do, be careful to avoid memory leaks.