dist/crocodoc.viewer.js
function loadSVGSuccess(text) {
        if (!destroyed && !unloaded) {
            if (!svgLoaded && text) {
                embedSVG(text);
                svgLoaded = true;
                if (!removeOnUnload) {
                    // cleanup the promise (abort will remove the svg text from
                    // the in-memory cache as well)
                    $loadSVGPromise.abort();
                    $loadSVGPromise = null;
                }
            }
            // always insert the svg el when load was successful
            if ($svg.parent().length === 0) {
                $svg.appendTo($svgLayer);
            }
        }
    }
function loadSVGSuccess(text) {
        if (!destroyed && !unloaded) {
            if (!svgLoaded && text) {
                embedSVG(text);
                svgLoaded = true;
                if (!removeOnUnload) {
                    // cleanup the promise (abort will remove the svg text from
                    // the in-memory cache as well)
                    $loadSVGPromise.abort();
                    $loadSVGPromise = null;
                }
            }
            // always insert the svg el when load was successful
            if ($svg.parent().length === 0) {
                $svg.appendTo($svgLayer);
            }
        }
    }
function loadSVGSuccess ( text ) { if ( ! destroyed && ! unloaded ) { if ( ! svgLoaded && text ) { embedSVG ( text ) ; svgLoaded = true ; if ( ! removeOnUnload ) { // cleanup the promise (abort will remove the svg text from // the in-memory cache as well) $loadSVGPromise . abort ( ) ; $loadSVGPromise = null ; } } // always insert the svg el when load was successful if ( $svg . parent ( ) . length === 0 ) { $svg . appendTo ( $svgLayer ) ; } } }
handle SVG load success
@param   {string} text The SVG text
@returns {void}
handle SVG load success