Open this page in the API Guide

MapBase.onDOMDetach Method

Called when the DOM element this control will render to is temporarily detached.