dist/crocodoc.viewer.js
function destroyComponent(instance) {
            if (util.isFn(instance.destroy) && !instance._destroyed) {
                instance.destroy();
                instance._destroyed = true;
            }
        }
function destroyComponent(instance) {
            if (util.isFn(instance.destroy) && !instance._destroyed) {
                instance.destroy();
                instance._destroyed = true;
            }
        }
function destroyComponent ( instance ) { if ( util . isFn ( instance . destroy ) && ! instance . _destroyed ) { instance . destroy ( ) ; instance . _destroyed = true ; } }
Call the destroy method on a component instance if it exists and the
instance has not already been destroyed
@param   {Object} instance The component instance
@returns {void}
Call the destroy method on a component instance if it exists and the instance has not already been destroyed