src/components/datepicker/js/calendar.spec.js
function findYearElement(parent, year) {
    var node = parent[0] || parent;
    var years = node.querySelectorAll('[md-calendar-year-body]');
    var yearHeader = year.toString();
    var target;

    for (var i = 0; i < years.length; i++) {
      target = years[i];
      if (target.querySelector('.md-calendar-month-label').textContent === yearHeader) {
        return target;
      }
    }
    return null;
  }
function findYearElement(parent, year) {
    var node = parent[0] || parent;
    var years = node.querySelectorAll('[md-calendar-year-body]');
    var yearHeader = year.toString();
    var target;

    for (var i = 0; i < years.length; i++) {
      target = years[i];
      if (target.querySelector('.md-calendar-month-label').textContent === yearHeader) {
        return target;
      }
    }
    return null;
  }
function findYearElement ( parent , year ) { var node = parent [ 0 ] || parent ; var years = node . querySelectorAll ( '[md-calendar-year-body]' ) ; var yearHeader = year . toString ( ) ; var target ; for ( var i = 0 ; i < years . length ; i ++ ) { target = years [ i ] ; if ( target . querySelector ( '.md-calendar-month-label' ) . textContent === yearHeader ) { return target ; } } return null ; }
Find the `tbody` for a year in the calendar.
Find the tbody for a year in the calendar .