loadAll(changeNum) {
      this._changeNum = changeNum;

      // Reset comment arrays.
      this._comments = undefined;
      this._drafts = undefined;
      this._robotComments = undefined;

      const promises = [];
      promises.push(this.$.restAPI.getDiffComments(changeNum)
          .then(comments => { this._comments = comments; }));
      promises.push(this.$.restAPI.getDiffRobotComments(changeNum)
          .then(robotComments => { this._robotComments = robotComments; }));
      promises.push(this.$.restAPI.getDiffDrafts(changeNum)
          .then(drafts => { this._drafts = drafts; }));

      return Promise.all(promises);
    }
/**
     * Load all comments (with drafts and robot comments) for the given change
     * number. The returned promise resolves when the comments have loaded, but
     * does not yield the comment data.
     *
     * @param {number} changeNum
     * @return {!Promise}
     */
Load all comments (with drafts and robot comments) for the given change
number. The returned promise resolves when the comments have loaded, but
does not yield the comment data.

@param {number} changeNum
@return {!Promise}
Load all comments ( with drafts and robot comments ) for the given change number . The returned promise resolves when the comments have loaded but does not yield the comment data . @param { number } changeNum @return { !Promise }
loadAll(changeNum) {
      this._changeNum = changeNum;
      this._comments = undefined;
      this._drafts = undefined;
      this._robotComments = undefined;
      const promises = [];
      promises.push(this.$.restAPI.getDiffComments(changeNum)
          .then(comments => { this._comments = comments; }));
      promises.push(this.$.restAPI.getDiffRobotComments(changeNum)
          .then(robotComments => { this._robotComments = robotComments; }));
      promises.push(this.$.restAPI.getDiffDrafts(changeNum)
          .then(drafts => { this._drafts = drafts; }));
      return Promise.all(promises);
    }
loadAll ( changeNum ) { this . _changeNum = changeNum ; this . _comments = undefined ; this . _drafts = undefined ; this . _robotComments = undefined ; const promises = [ ] ; promises . push ( this . $ . restAPI . getDiffComments ( changeNum ) . then ( comments => { this . _comments = comments ; } ) ) ; promises . push ( this . $ . restAPI . getDiffRobotComments ( changeNum ) . then ( robotComments => { this . _robotComments = robotComments ; } ) ) ; promises . push ( this . $ . restAPI . getDiffDrafts ( changeNum ) . then ( drafts => { this . _drafts = drafts ; } ) ) ; return Promise . all ( promises ) ; }
Load all comments (with drafts and robot comments) for the given change
 number.
Load all comments ( with drafts and robot comments ) for the given change number .
// Reset comment arrays.