lib/kissy/5.0.0-alpha.3/lib/build/date/gregorian.js
function () {
            var weekYear = this.getWeekYear();
            if (weekYear === this.get(YEAR)) {
                return this.getActualMaximum(WEEK_OF_YEAR);
            }    // Use the 2nd week for calculating the max of WEEK_OF_YEAR
            // Use the 2nd week for calculating the max of WEEK_OF_YEAR
            var gc = this.clone();
            gc.setWeekDate(weekYear, 2, this.get(DAY_OF_WEEK));
            return gc.getActualMaximum(WEEK_OF_YEAR);
        }
function () {
            var weekYear = this.getWeekYear();
            if (weekYear === this.get(YEAR)) {
                return this.getActualMaximum(WEEK_OF_YEAR);
            }    // Use the 2nd week for calculating the max of WEEK_OF_YEAR
            // Use the 2nd week for calculating the max of WEEK_OF_YEAR
            var gc = this.clone();
            gc.setWeekDate(weekYear, 2, this.get(DAY_OF_WEEK));
            return gc.getActualMaximum(WEEK_OF_YEAR);
        }
function ( ) { var weekYear = this . getWeekYear ( ) ; if ( weekYear === this . get ( YEAR ) ) { return this . getActualMaximum ( WEEK_OF_YEAR ) ; } // Use the 2nd week for calculating the max of WEEK_OF_YEAR // Use the 2nd week for calculating the max of WEEK_OF_YEAR var gc = this . clone ( ) ; gc . setWeekDate ( weekYear , 2 , this . get ( DAY_OF_WEEK ) ) ; return gc . getActualMaximum ( WEEK_OF_YEAR ) ; }
Returns the number of weeks in the week year
represented by this GregorianCalendar.

For example, if this GregorianCalendar's date is
December 31, 2008 with the ISO
8601 compatible setting, this method will return 53 for the
period: December 29, 2008 to January 3, 2010
while getActualMaximum(WEEK_OF_YEAR) will return
52 for the period: December 31, 2007 to December 28, 2008.

@return {Number} the number of weeks in the week year.
Returns the number of weeks in the week year represented by this GregorianCalendar .