src/structure.js
function cloneNode (n) {
    var c = {
        __association_score: n.__association_score,
        __evidence_count: n.__evidence_count,
        id: n.id,
        __id: n.__id,
        __name: n.__name,
        target: {
            id: n.target.id,
            name: n.target.gene_info.name,
            symbol: n.target.gene_info.symbol
        },
        disease: cloneDisease(n.disease),
        association_score: cloneAssociationScore(n.association_score),
        evidence_count: cloneEvidenceCount(n.evidence_count)
    };
    if (n.is_direct) {
        c.is_direct = n.is_direct;
    }
    return c;
}
function cloneNode (n) {
    var c = {
        __association_score: n.__association_score,
        __evidence_count: n.__evidence_count,
        id: n.id,
        __id: n.__id,
        __name: n.__name,
        target: {
            id: n.target.id,
            name: n.target.gene_info.name,
            symbol: n.target.gene_info.symbol
        },
        disease: cloneDisease(n.disease),
        association_score: cloneAssociationScore(n.association_score),
        evidence_count: cloneEvidenceCount(n.evidence_count)
    };
    if (n.is_direct) {
        c.is_direct = n.is_direct;
    }
    return c;
}
function cloneNode ( n ) { var c = { __association_score : n . __association_score , __evidence_count : n . __evidence_count , id : n . id , __id : n . __id , __name : n . __name , target : { id : n . target . id , name : n . target . gene_info . name , symbol : n . target . gene_info . symbol } , disease : cloneDisease ( n . disease ) , association_score : cloneAssociationScore ( n . association_score ) , evidence_count : cloneEvidenceCount ( n . evidence_count ) } ; if ( n . is_direct ) { c . is_direct = n . is_direct ; } return c ; }
Fast clone methods
Fast clone methods