code: function(year) {
  			var date = this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
  			year = date.year();
  			return this.toJD((year === -1 ? +1 : year + 1), 7, 1) - this.toJD(year, 7, 1);
  		}
docs: Retrieve the number of days in a year.
  @memberof HebrewCalendar
  @param year {CDate|number} The date to examine or the year to examine.
  @return {number} The number of days.
  @throws Error if an invalid year or a different calendar used.