function saveConnections(containerBlock) {
    var itemBlock = containerBlock.getInputTargetBlock('STACK');
    var i = 0;

    while (itemBlock) {
      var input = this.getInput('PARAMETER' + 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) {
    var itemBlock = containerBlock.getInputTargetBlock('STACK');
    var i = 0;
    while (itemBlock) {
      var input = this.getInput('PARAMETER' + i);
      itemBlock.valueConnection_ = input && input.connection.targetConnection;
      i++;
      itemBlock = itemBlock.nextConnection && itemBlock.nextConnection.targetBlock();
    }
  }
function saveConnections ( containerBlock ) { var itemBlock = containerBlock . getInputTargetBlock ( 'STACK' ) ; var i = 0 ; while ( itemBlock ) { var input = this . getInput ( 'PARAMETER' + 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 .