code: 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);
          }
docs: 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.