code: function(date) {
          var cal = null;
          if (date) {
              var y = date.getFullYear(),
                  m = date.getMonth();
  
              var pages = this.pages;
              for (var i = 0; i < pages.length; ++i) {
                  var pageDate = pages[i].cfg.getProperty("pagedate");
                  if (pageDate.getFullYear() === y && pageDate.getMonth() === m) {
                      cal = pages[i];
                      break;
                  }
              }
          }
          return cal;
      }
docs: Returns the Calendar page instance which has a pagedate (month/year) matching the given date.
  Returns null if no match is found.
  
  @method getCalendarPage
  @param {Date} date The JavaScript Date object for which a Calendar page is to be found.
  @return {Calendar} The Calendar page instance representing the month to which the date
  belongs.