function saveConnections(containerBlock) {
      containerBlock.valueConnection_ = this.getInput('GENERATOR0').connection.targetConnection;
      var itemBlock = containerBlock.getInputTargetBlock('STACK');
      var i = 1;

      while (itemBlock) {
        var input = this.getInput('GENERATOR' + i);
        itemBlock.valueConnection_ = input && input.connection.targetConnection;
        i++;
        itemBlock = itemBlock.nextConnection && itemBlock.nextConnection.targetBlock();
      }
    }
/**
     * Store pointers to any connected child blocks.
     * @param {!Blockly.Block} containerBlock Root block in mutator.
     * @this Blockly.Block
     */
Store pointers to any connected child blocks.
@param {!Blockly.Block} containerBlock Root block in mutator.
Store pointers to any connected child blocks . @param { !Blockly . Block } containerBlock Root block in mutator .
function saveConnections(containerBlock) {
      containerBlock.valueConnection_ = this.getInput('GENERATOR0').connection.targetConnection;
      var itemBlock = containerBlock.getInputTargetBlock('STACK');
      var i = 1;
      while (itemBlock) {
        var input = this.getInput('GENERATOR' + i);
        itemBlock.valueConnection_ = input && input.connection.targetConnection;
        i++;
        itemBlock = itemBlock.nextConnection && itemBlock.nextConnection.targetBlock();
      }
    }
function saveConnections ( containerBlock ) { containerBlock . valueConnection_ = this . getInput ( 'GENERATOR0' ) . connection . targetConnection ; var itemBlock = containerBlock . getInputTargetBlock ( 'STACK' ) ; var i = 1 ; while ( itemBlock ) { var input = this . getInput ( 'GENERATOR' + i ) ; itemBlock . valueConnection_ = input && input . connection . targetConnection ; i ++ ; itemBlock = itemBlock . nextConnection && itemBlock . nextConnection . targetBlock ( ) ; } }
Store pointers to any connected child blocks.
Store pointers to any connected child blocks .