@@ -17,31 +17,31 @@ class PfeAccordionHeader extends PFElement {
1717 return {
1818 _id : {
1919 type : String ,
20- default : el => `${ el . randomId . replace ( "pfe" , el . tag ) } ` ,
21- prefix : false
20+ default : ( el ) => `${ el . randomId . replace ( "pfe" , el . tag ) } ` ,
21+ prefix : false ,
2222 } ,
2323 ariaControls : {
2424 type : String ,
25- prefix : false
25+ prefix : false ,
2626 } ,
2727 // @TODO Deprecated pfe-id in 1.0
2828 oldPfeId : {
2929 type : String ,
3030 alias : "_id" ,
31- attr : "pfe-id"
31+ attr : "pfe-id" ,
3232 } ,
3333 expanded : {
3434 title : "Expanded" ,
3535 type : Boolean ,
3636 cascade : "#pfe-accordion-header--button" ,
37- observer : "_expandedChanged"
38- }
37+ observer : "_expandedChanged" ,
38+ } ,
3939 } ;
4040 }
4141
4242 static get events ( ) {
4343 return {
44- change : `pfe-accordion:change`
44+ change : `pfe-accordion:change` ,
4545 } ;
4646 }
4747
@@ -64,7 +64,7 @@ class PfeAccordionHeader extends PFElement {
6464
6565 this . addEventListener ( "click" , this . _clickHandler ) ;
6666 this . _observer . observe ( this , {
67- childList : true
67+ childList : true ,
6868 } ) ;
6969 }
7070
@@ -103,7 +103,7 @@ class PfeAccordionHeader extends PFElement {
103103
104104 if ( window . ShadyCSS ) {
105105 this . _observer . observe ( this , {
106- childList : true
106+ childList : true ,
107107 } ) ;
108108 }
109109 }
@@ -126,14 +126,14 @@ class PfeAccordionHeader extends PFElement {
126126 }
127127 // If there is more than 1 element in the slot, capture the first h-tag
128128 if ( slotted . length > 1 ) this . warn ( `Heading currently only supports 1 tag.` ) ;
129- const htags = slotted . filter ( slot => slot . tagName . match ( / ^ H [ 1 - 6 ] / ) || slot . tagName === "P" ) ;
129+ const htags = slotted . filter ( ( slot ) => slot . tagName . match ( / ^ H [ 1 - 6 ] / ) || slot . tagName === "P" ) ;
130130 if ( htags . length > 0 ) {
131131 // Return the first htag and attach an observer event to watch for it
132- slotted . forEach ( slot =>
132+ slotted . forEach ( ( slot ) =>
133133 this . _slotObserver . observe ( slot , {
134134 characterData : true ,
135135 childList : true ,
136- subtree : true
136+ subtree : true ,
137137 } )
138138 ) ;
139139 return htags [ 0 ] ;
@@ -159,8 +159,8 @@ class PfeAccordionHeader extends PFElement {
159159 _clickHandler ( event ) {
160160 this . emitEvent ( PfeAccordionHeader . events . change , {
161161 detail : {
162- expanded : ! this . expanded
163- }
162+ expanded : ! this . expanded ,
163+ } ,
164164 } ) ;
165165 }
166166
0 commit comments