function EpisodePreviewIterator(episodes, minPhotos, maxPhotos) {
  PhotoIterator.call(this);
  this.episodes_ = episodes;
  this.epIndex_ = this.getNextEpisode_(0);
  this.minPhotos_ = minPhotos;
  this.maxPhotos_ = maxPhotos;
  this.photoIndex_ = 0;
  this.maxIndex_ = this.chooseMaxIndex_();
}
/**
 * Iteration class which yields between minPhotos and maxPhotos (both
 * bounded by number of photos in episode) for each episode. The 'remaining'
 * function will return the number of photos in each episode and when
 * all have been iterated, 'remaining' will show the number of photos
 * remaining in the next episode, or 0 if there are no further episodes.
 *
 * @param {array} episodes array.
 * @param {number} the minimum number of photos to display per episode.
 * @param {number} the maximum number of photos to display per episode.
 */
Iteration class which yields between minPhotos and maxPhotos (both
bounded by number of photos in episode) for each episode. The 'remaining'
function will return the number of photos in each episode and when
all have been iterated, 'remaining' will show the number of photos
remaining in the next episode, or 0 if there are no further episodes.

@param {array} episodes array.
@param {number} the minimum number of photos to display per episode.
@param {number} the maximum number of photos to display per episode.
Iteration class which yields between minPhotos and maxPhotos ( both bounded by number of photos in episode ) for each episode . The ' remaining ' function will return the number of photos in each episode and when all have been iterated ' remaining ' will show the number of photos remaining in the next episode or 0 if there are no further episodes . @param { array } episodes array . @param { number } the minimum number of photos to display per episode . @param { number } the maximum number of photos to display per episode .
function EpisodePreviewIterator(episodes, minPhotos, maxPhotos) {
  PhotoIterator.call(this);
  this.episodes_ = episodes;
  this.epIndex_ = this.getNextEpisode_(0);
  this.minPhotos_ = minPhotos;
  this.maxPhotos_ = maxPhotos;
  this.photoIndex_ = 0;
  this.maxIndex_ = this.chooseMaxIndex_();
}
function EpisodePreviewIterator ( episodes , minPhotos , maxPhotos ) { PhotoIterator . call ( this ) ; this . episodes_ = episodes ; this . epIndex_ = this . getNextEpisode_ ( 0 ) ; this . minPhotos_ = minPhotos ; this . maxPhotos_ = maxPhotos ; this . photoIndex_ = 0 ; this . maxIndex_ = this . chooseMaxIndex_ ( ) ; }
Iteration class which yields between minPhotos and maxPhotos (both
 bounded by number of photos in episode) for each episode.
Iteration class which yields between minPhotos and maxPhotos ( both bounded by number of photos in episode ) for each episode .