@@ -469,7 +469,7 @@ function(SERVICES, COMPONENTS, DEMOS, PAGES, $location, $rootScope, $http, $wind
469
469
if ( section . children ) {
470
470
// matches nested section toggles, such as API or Customization
471
471
section . children . forEach ( function ( childSection ) {
472
- if ( childSection . pages ) {
472
+ if ( childSection . pages ) {
473
473
childSection . pages . forEach ( function ( page ) {
474
474
matchPage ( childSection , page ) ;
475
475
} ) ;
@@ -575,7 +575,7 @@ function(SERVICES, COMPONENTS, DEMOS, PAGES, $location, $rootScope, $http, $wind
575
575
} ) ;
576
576
577
577
var parentNode = $element [ 0 ] . parentNode . parentNode . parentNode ;
578
- if ( parentNode . classList . contains ( 'parent-list-item' ) ) {
578
+ if ( parentNode . classList . contains ( 'parent-list-item' ) ) {
579
579
var heading = parentNode . querySelector ( 'h2' ) ;
580
580
$element [ 0 ] . firstChild . setAttribute ( 'aria-describedby' , heading . id ) ;
581
581
}
@@ -689,12 +689,12 @@ function($scope, COMPONENTS, BUILDCONFIG, $mdSidenav, $timeout, $mdDialog, menu,
689
689
function isSectionSelected ( section ) {
690
690
var selected = false ;
691
691
var openedSection = menu . openedSection ;
692
- if ( openedSection === section ) {
692
+ if ( openedSection === section ) {
693
693
selected = true ;
694
694
}
695
- else if ( section . children ) {
695
+ else if ( section . children ) {
696
696
section . children . forEach ( function ( childSection ) {
697
- if ( childSection === openedSection ) {
697
+ if ( childSection === openedSection ) {
698
698
selected = true ;
699
699
}
700
700
} ) ;
0 commit comments