hive/html/js-graph/vjSVG_base.js
/*! Remove trivial children from an SVG element
 * \param obj An SVG element
 * \param tagName Tag name of children to remove
 */
Remove trivial children from an SVG element
\param obj An SVG element
\param tagName Tag name of children to remove
Remove trivial children from an SVG element \ param obj An SVG element \ param tagName Tag name of children to remove
function vjSVGClearTrivialChildren(obj, tagName)
{
    var c = obj.firstChild;
    while (c) {
        if (c.tagName === tagName) {
            var nextSibling = c.nextSibling;
            obj.removeChild(c);
            c = nextSibling;
        } else {
            c = c.nextSibling;
        }
    }
}
function vjSVGClearTrivialChildren ( obj , tagName ) { var c = obj . firstChild ; while ( c ) { if ( c . tagName === tagName ) { var nextSibling = c . nextSibling ; obj . removeChild ( c ) ; c = nextSibling ; } else { c = c . nextSibling ; } } }
Remove trivial children from an SVG element
 \param obj An SVG element
 \param tagName Tag name of children to remove
Remove trivial children from an SVG element \ param obj An SVG element \ param tagName Tag name of children to remove