Blocks.prototype.insert = function()

in src/lib/vpsc.js [261:271]


    Blocks.prototype.insert = function (b) {
        /* DEBUG
                    console.assert(!this.contains(b), "blocks error: tried to reinsert block " + b.blockInd)
        DEBUG */
        b.blockInd = this.list.length;
        this.list.push(b);
        /* DEBUG
                    console.log("insert block: " + b.blockInd);
                    this.contains(b);
        DEBUG */
    };