lib/calendar.js
function initialize(y, m, d) {
  var today = dateUtils.today();
  var thisDay = dateUtils.getDay(today);
  var thisMonth = dateUtils.getMonth(today);
  var thisYear = dateUtils.getYear(today);

  calendar.y = y || thisYear;
  calendar.m = m || thisMonth;
  calendar.d = d || thisDay;

  calendar.year = yearFactory.get(calendar.y);
}
function initialize(y, m, d) {
  var today = dateUtils.today();
  var thisDay = dateUtils.getDay(today);
  var thisMonth = dateUtils.getMonth(today);
  var thisYear = dateUtils.getYear(today);

  calendar.y = y || thisYear;
  calendar.m = m || thisMonth;
  calendar.d = d || thisDay;

  calendar.year = yearFactory.get(calendar.y);
}
function initialize ( y , m , d ) { var today = dateUtils . today ( ) ; var thisDay = dateUtils . getDay ( today ) ; var thisMonth = dateUtils . getMonth ( today ) ; var thisYear = dateUtils . getYear ( today ) ; calendar . y = y || thisYear ; calendar . m = m || thisMonth ; calendar . d = d || thisDay ; calendar . year = yearFactory . get ( calendar . y ) ; }
Initializes the calendar.
@param {number} [y] year (default: this year)
@param {number} [m] month (default: this month)
@param {number} [d] day (default: this day)
@private
Initializes the calendar .