function findMonthElement(element, date) {
    var months = element.querySelectorAll('[md-calendar-month-body]');
    var monthHeader = dateLocale.monthHeaderFormatter(date);
    var month;

    for (var i = 0; i < months.length; i++) {
      month = months[i];
      if (month.querySelector('tr:first-child td:first-child').textContent === monthHeader) {
        return month;
      }
    }
    return null;
  }
function findMonthElement(element, date) {
    var months = element.querySelectorAll('[md-calendar-month-body]');
    var monthHeader = dateLocale.monthHeaderFormatter(date);
    var month;

    for (var i = 0; i < months.length; i++) {
      month = months[i];
      if (month.querySelector('tr:first-child td:first-child').textContent === monthHeader) {
        return month;
      }
    }
    return null;
  }
function findMonthElement ( element , date ) { var months = element . querySelectorAll ( '[md-calendar-month-body]' ) ; var monthHeader = dateLocale . monthHeaderFormatter ( date ) ; var month ; for ( var i = 0 ; i < months . length ; i ++ ) { month = months [ i ] ; if ( month . querySelector ( 'tr:first-child td:first-child' ) . textContent === monthHeader ) { return month ; } } return null ; }
Finds a month `tbody` in the calendar element given a date.
Finds a month tbody in the calendar element given a date .
Find the month element in the specified calendar container