docs/js/tree.js
function(o) {
        for (i in o) {
            if (!!o[i] && typeof(o[i]) == "object") {
                if (!o[i].length && o[i].type === 'tag') {
                    nodeCount += 1;
                    o[i]._id = nodeCount;
                }
                traverseIds(o[i]);
            }
        }
    }
function(o) {
        for (i in o) {
            if (!!o[i] && typeof(o[i]) == "object") {
                if (!o[i].length && o[i].type === 'tag') {
                    nodeCount += 1;
                    o[i]._id = nodeCount;
                }
                traverseIds(o[i]);
            }
        }
    }
function ( o ) { for ( i in o ) { if ( ! ! o [ i ] && typeof ( o [ i ] ) == "object" ) { if ( ! o [ i ] . length && o [ i ] . type === 'tag' ) { nodeCount += 1 ; o [ i ] . _id = nodeCount ; } traverseIds ( o [ i ] ) ; } } }
Add id for nodes
Add id for nodes