public/javascripts/yui/calendar/calendar.js
function(weekBeginDate) {
        var overlaps = false;
        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
            overlaps = true;
        }
        return overlaps;
    }
function(weekBeginDate) {
        var overlaps = false;
        var nextWeek = this.add(weekBeginDate, this.DAY, 6);
        if (nextWeek.getMonth() != weekBeginDate.getMonth()) {
            overlaps = true;
        }
        return overlaps;
    }
function ( weekBeginDate ) { var overlaps = false ; var nextWeek = this . add ( weekBeginDate , this . DAY , 6 ) ; if ( nextWeek . getMonth ( ) != weekBeginDate . getMonth ( ) ) { overlaps = true ; } return overlaps ; }
Determines if a given week overlaps two different months.
@method isMonthOverlapWeek
@param {Date} weekBeginDate The JavaScript Date representing the first day of the week.
@return {Boolean} true if the date overlaps two different months.
Determines if a given week overlaps two different months .