src/virtual-machine.js
/**
     * Called when blocks are dragged from one sprite to another. Adds the blocks to the
     * workspace of the given target.
     * @param {!Array<object>} blocks Blocks to add.
     * @param {!string} targetId Id of target to add blocks to.
     */
Called when blocks are dragged from one sprite to another. Adds the blocks to the
workspace of the given target.
@param {!Array} blocks Blocks to add.
@param {!string} targetId Id of target to add blocks to.
Called when blocks are dragged from one sprite to another . Adds the blocks to the workspace of the given target . @param { !Array } blocks Blocks to add . @param { !string } targetId Id of target to add blocks to .
shareBlocksToTarget (blocks, targetId) {
        const target = this.runtime.getTargetById(targetId);
        for (let i = 0; i < blocks.length; i++) {
            target.blocks.createBlock(blocks[i]);
        }
    }
shareBlocksToTarget ( blocks , targetId ) { const target = this . runtime . getTargetById ( targetId ) ; for ( let i = 0 ; i < blocks . length ; i ++ ) { target . blocks . createBlock ( blocks [ i ] ) ; } }
Called when blocks are dragged from one sprite to another.
Called when blocks are dragged from one sprite to another .