File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " js-element" ,
3- "version" : " 0.0.205 " ,
3+ "version" : " 0.0.206 " ,
44 "description" : " " ,
55 "license" : " LGPL-3.0" ,
66 "main" : " ./index.js" ,
Original file line number Diff line number Diff line change @@ -179,12 +179,16 @@ class BaseElement extends HTMLElement {
179179 let styles = elemConfigByClass . get ( this . constructor ) ! . styles
180180
181181 if ( typeof styles !== 'string' ) {
182- styles = typeof styles === 'function' ? styles ( ) : ( styles = '' )
182+ styles = typeof styles === 'function' ? styles ( ) : styles
183183
184184 if ( Array . isArray ( styles ) ) {
185185 styles = styles . map ( ( it ) => it . trim ( ) ) . join ( '\n\n/*******/\n\n' )
186186 }
187187
188+ if ( ! styles ) {
189+ styles = ''
190+ }
191+
188192 elemConfigByClass . get ( this . constructor ) ! . styles = styles
189193 }
190194
You can’t perform that action at this time.
0 commit comments