dist/crocodoc.viewer.js
function () {
            // empty container and remove all class names that contain "crocodoc"
            $el.empty().removeClass(function (i, cls) {
                var match = cls.match(new RegExp('crocodoc\\S+', 'g'));
                return match && match.join(' ');
            });

            // remove the stylesheet
            $(stylesheetEl).remove();

            if ($assetsPromise) {
                $assetsPromise.abort();
            }
        }
function () {
            // empty container and remove all class names that contain "crocodoc"
            $el.empty().removeClass(function (i, cls) {
                var match = cls.match(new RegExp('crocodoc\\S+', 'g'));
                return match && match.join(' ');
            });

            // remove the stylesheet
            $(stylesheetEl).remove();

            if ($assetsPromise) {
                $assetsPromise.abort();
            }
        }
function ( ) { // empty container and remove all class names that contain "crocodoc" $el . empty ( ) . removeClass ( function ( i , cls ) { var match = cls . match ( new RegExp ( 'crocodoc\\S+' , 'g' ) ) ; return match && match . join ( ' ' ) ; } ) ; // remove the stylesheet $ ( stylesheetEl ) . remove ( ) ; if ( $assetsPromise ) { $assetsPromise . abort ( ) ; } }
Destroy the viewer-base component
@returns {void}
Destroy the viewer - base component