lib/recurrify.js
/**
   * Updates the set of cached start dates to the next valid start dates. Only
   * recurrences where the current start date is less than or equal to the
   * specified startDate need to be updated.
   *
   * @param {String} dir: The direction to use, either 'next' or 'prev'
   * @param {Array} schedArr: The set of compiled recurrences to use
   * @param {Array} startsArr: The set of cached start dates for the recurrences
   * @param {Date} startDate: Starts earlier than this date will be calculated
   */
Updates the set of cached start dates to the next valid start dates. Only
recurrences where the current start date is less than or equal to the
specified startDate need to be updated.

@param {String} dir: The direction to use, either 'next' or 'prev'
@param {Array} schedArr: The set of compiled recurrences to use
@param {Array} startsArr: The set of cached start dates for the recurrences
@param {Date} startDate: Starts earlier than this date will be calculated
Updates the set of cached start dates to the next valid start dates . Only recurrences where the current start date is less than or equal to the specified startDate need to be updated . @param { String } dir : The direction to use either ' next ' or ' prev ' @param { Array } schedArr : The set of compiled recurrences to use @param { Array } startsArr : The set of cached start dates for the recurrences @param { Date } startDate : Starts earlier than this date will be calculated
function updateNextStarts (dir, schedArr, startsArr, startDate) {
    var compare = compareFn(dir)
    for (var i = 0, len = schedArr.length; i < len; i++) {
      if (startsArr[i] && !compare(startsArr[i], startDate)) {
        startsArr[i] = schedArr[i].start(dir, startDate)
      }
    }
  }
function updateNextStarts ( dir , schedArr , startsArr , startDate ) { var compare = compareFn ( dir ) for ( var i = 0 , len = schedArr . length ; i < len ; i ++ ) { if ( startsArr [ i ] && ! compare ( startsArr [ i ] , startDate ) ) { startsArr [ i ] = schedArr [ i ] . start ( dir , startDate ) } } }
Updates the set of cached start dates to the next valid start dates.
Updates the set of cached start dates to the next valid start dates .