@@ -23,15 +23,15 @@ export class HXTabsetElement extends HXElement {
2323 this . currentTab = Number ( this . getAttribute ( 'current-tab' ) ) || 0 ;
2424 this . $tablist . addEventListener ( 'keyup' , this . _onKeyUp ) ;
2525 this . $tablist . addEventListener ( 'keydown' , this . $preventScroll ) ;
26- this . tabs . forEach ( ( tab ) => {
26+ this . tabs . forEach ( tab => {
2727 tab . addEventListener ( 'click' , this . _onTabClick ) ;
2828 } ) ;
2929 }
3030
3131 disconnectedCallback ( ) {
3232 this . $tablist . removeEventListener ( 'keyup' , this . _onKeyUp ) ;
3333 this . $tablist . removeEventListener ( 'keydown' , this . $preventScroll ) ;
34- this . tabs . forEach ( ( tab ) => {
34+ this . tabs . forEach ( tab => {
3535 tab . removeEventListener ( 'click' , this . _onTabClick ) ;
3636 } ) ;
3737 }
@@ -52,12 +52,12 @@ export class HXTabsetElement extends HXElement {
5252 }
5353
5454 if ( idx < 0 || idx >= this . tabs . length ) {
55- throw new RangeError ( ` 'currentTab' index is out of bounds` ) ;
55+ throw new RangeError ( 'currentTab index is out of bounds' ) ;
5656 }
5757
5858 this . _currentTab = idx ;
5959
60- this . tabs . forEach ( ( tab , tabIdx ) => {
60+ this . tabs . forEach ( ( tab , tabIdx ) => {
6161 if ( idx === tabIdx ) {
6262 tab . current = true ;
6363 tab . setAttribute ( 'tabindex' , 0 ) ;
@@ -68,7 +68,7 @@ export class HXTabsetElement extends HXElement {
6868 }
6969 } ) ;
7070
71- this . tabpanels . forEach ( ( tabpanel , panelIdx ) => {
71+ this . tabpanels . forEach ( ( tabpanel , panelIdx ) => {
7272 tabpanel . open = ( idx === panelIdx ) ;
7373 } ) ;
7474 } //SET:currentTab
@@ -121,7 +121,7 @@ export class HXTabsetElement extends HXElement {
121121 }
122122
123123 _setupIds ( ) {
124- this . tabs . forEach ( ( tab , idx ) => {
124+ this . tabs . forEach ( ( tab , idx ) => {
125125 let tabpanel = this . tabpanels [ idx ] ;
126126 // Default tab and panel ID
127127 let tabId = `hxTab-${ this . $generateId ( ) } ` ;
0 commit comments