src/mol/mol.js
function(chain, recurse) {
    var chainView = new ChainView(this, chain.full());
    this._chains.push(chainView);
    if (recurse) {
      var residues = chain.residues();
      for (var i = 0; i< residues.length; ++i) {
        chainView.addResidue(residues[i], true);
      }
    }
    return chainView;
  }
function(chain, recurse) {
    var chainView = new ChainView(this, chain.full());
    this._chains.push(chainView);
    if (recurse) {
      var residues = chain.residues();
      for (var i = 0; i< residues.length; ++i) {
        chainView.addResidue(residues[i], true);
      }
    }
    return chainView;
  }
function ( chain , recurse ) { var chainView = new ChainView ( this , chain . full ( ) ) ; this . _chains . push ( chainView ) ; if ( recurse ) { var residues = chain . residues ( ) ; for ( var i = 0 ; i < residues . length ; ++ i ) { chainView . addResidue ( residues [ i ] , true ) ; } } return chainView ; }
add chain to view
add chain to view