function domToMutation(xmlElement) {
    this.itemCount_ = parseInt(xmlElement.getAttribute('items'), 10);
    this.renames_ = [];

    for (var i = 0, childNode; childNode = xmlElement.childNodes[i]; i++) {
      if (childNode.nodeName.toLowerCase() === 'as') {
        this.renames_.push("true" === childNode.getAttribute('name'));
      }
    }

    this.updateShape_();
  }
/**
   * Parse XML to restore the list inputs.
   * @param {!Element} xmlElement XML storage element.
   * @this Blockly.Block
   */
Parse XML to restore the list inputs.
@param {!Element} xmlElement XML storage element.
Parse XML to restore the list inputs . @param { !Element } xmlElement XML storage element .
function domToMutation(xmlElement) {
    this.itemCount_ = parseInt(xmlElement.getAttribute('items'), 10);
    this.renames_ = [];
    for (var i = 0, childNode; childNode = xmlElement.childNodes[i]; i++) {
      if (childNode.nodeName.toLowerCase() === 'as') {
        this.renames_.push("true" === childNode.getAttribute('name'));
      }
    }
    this.updateShape_();
  }
function domToMutation ( xmlElement ) { this . itemCount_ = parseInt ( xmlElement . getAttribute ( 'items' ) , 10 ) ; this . renames_ = [ ] ; for ( var i = 0 , childNode ; childNode = xmlElement . childNodes [ i ] ; i ++ ) { if ( childNode . nodeName . toLowerCase ( ) === 'as' ) { this . renames_ . push ( "true" === childNode . getAttribute ( 'name' ) ) ; } } this . updateShape_ ( ) ; }
Parse XML to restore the list inputs.
Parse XML to restore the list inputs .