function EpisodesByDayIterator(episodes) {
  PhotoIterator.call(this);
  this.episodes_ = episodes;
  this.epIndex_ = this.getNextEpisode_(0);
  this.photoIndex_ = 0;
  this.maxIndex_ = this.chooseMaxIndex_();
  this.MIN_PHOTOS = 2;
}
/**
 * Iteration class which groups episodes by days. Each day may contain
 * multiple rows depending on the clusters of locations.  Separate
 * clusters of locations demand their own row(s). For each cluster, up
 * to three episodes may be displayed in a row. Each row may have up to
 * six photos. Between one and five photos from each episode are
 * displayed; two per episode is the minimum if there are two or more
 * photos in the episode.
 *
 * @param {array} episodes array.
 */
Iteration class which groups episodes by days. Each day may contain
multiple rows depending on the clusters of locations.  Separate
clusters of locations demand their own row(s). For each cluster, up
to three episodes may be displayed in a row. Each row may have up to
six photos. Between one and five photos from each episode are
displayed; two per episode is the minimum if there are two or more
photos in the episode.

@param {array} episodes array.
Iteration class which groups episodes by days . Each day may contain multiple rows depending on the clusters of locations . Separate clusters of locations demand their own row ( s ) . For each cluster up to three episodes may be displayed in a row . Each row may have up to six photos . Between one and five photos from each episode are displayed ; two per episode is the minimum if there are two or more photos in the episode . @param { array } episodes array .
function EpisodesByDayIterator(episodes) {
  PhotoIterator.call(this);
  this.episodes_ = episodes;
  this.epIndex_ = this.getNextEpisode_(0);
  this.photoIndex_ = 0;
  this.maxIndex_ = this.chooseMaxIndex_();
  this.MIN_PHOTOS = 2;
}
function EpisodesByDayIterator ( episodes ) { PhotoIterator . call ( this ) ; this . episodes_ = episodes ; this . epIndex_ = this . getNextEpisode_ ( 0 ) ; this . photoIndex_ = 0 ; this . maxIndex_ = this . chooseMaxIndex_ ( ) ; this . MIN_PHOTOS = 2 ; }
Iteration class which groups episodes by days.
Iteration class which groups episodes by days .