function Builder(doc, optAuthor) {
  this._ops = new ComponentList();
  this._doc = doc;
  this._len = doc.length();
  this._mut = doc.mutate();
  this._author = new AttributeList();
  this._authorId = optAuthor;
  if(optAuthor) {
    this._author.addFormatOp('author', optAuthor);
  }  
}
/**
 * Creates a Changeset builder for the document.
 * @param {AttributedDocument} doc
 * @param? {String} optAuthor - optional author of all changes
 */
Creates a Changeset builder for the document.
@param {AttributedDocument} doc
@param. {String} optAuthor - optional author of all changes
Creates a Changeset builder for the document . @param { AttributedDocument } doc @param . { String } optAuthor - optional author of all changes
function Builder(doc, optAuthor) {
  this._ops = new ComponentList();
  this._doc = doc;
  this._len = doc.length();
  this._mut = doc.mutate();
  this._author = new AttributeList();
  this._authorId = optAuthor;
  if(optAuthor) {
    this._author.addFormatOp('author', optAuthor);
  }  
}
function Builder ( doc , optAuthor ) { this . _ops = new ComponentList ( ) ; this . _doc = doc ; this . _len = doc . length ( ) ; this . _mut = doc . mutate ( ) ; this . _author = new AttributeList ( ) ; this . _authorId = optAuthor ; if ( optAuthor ) { this . _author . addFormatOp ( 'author' , optAuthor ) ; } }
Creates a Changeset builder for the document.
Creates a Changeset builder for the document .