code: function(year) {
  			var date = this._validate(year, this.minMonth, this.minDay, $.calendars.local.invalidYear);
  			year = date.year();
  			if (typeof this.NEPALI_CALENDAR_DATA[year] === 'undefined') {
  				return this.daysPerYear;
  			}
  			var daysPerYear = 0;
  			for (var month_number = this.minMonth; month_number <= 12; month_number++) {
  				daysPerYear += this.NEPALI_CALENDAR_DATA[year][month_number];
  			}
  			return daysPerYear;
  		}
docs: Retrieve the number of days in a year.
  @memberof NepaliCalendar
  @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.