File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export function BoltComponent(Base = HTMLElement) {
48
48
styles = styles . join ( ' ' ) ;
49
49
50
50
if ( this . useShadow ) {
51
- return hyper . wire ( ) `
51
+ return hyper . wire ( this ) `
52
52
<style>${ styles } </style>
53
53
` ;
54
54
}
@@ -57,17 +57,17 @@ export function BoltComponent(Base = HTMLElement) {
57
57
slot ( name ) {
58
58
if ( this . useShadow && hasNativeShadowDomSupport ) {
59
59
if ( name === 'default' ) {
60
- return hyper . wire ( ) `
60
+ return hyper . wire ( this ) `
61
61
<slot />
62
62
` ;
63
63
} else {
64
- return hyper . wire ( ) `
64
+ return hyper . wire ( this ) `
65
65
<slot name="${ name } " />
66
66
` ;
67
67
}
68
68
} else {
69
69
if ( this . slots [ name ] ) {
70
- return hyper . wire ( ) `
70
+ return hyper . wire ( this ) `
71
71
${ this . slots . default }
72
72
` ;
73
73
}
@@ -88,15 +88,15 @@ export function BoltComponent(Base = HTMLElement) {
88
88
89
89
// Loop through nodelist
90
90
this . childNodes . forEach ( function ( child , index , nodelist ) {
91
- const slotName = child . getAttribute ? child . getAttribute ( "slot" ) : null ;
91
+ const slotName = child . getAttribute ? child . getAttribute ( "slot" ) : null ;
92
92
93
- if ( ! slotName ) {
93
+ if ( ! slotName ) {
94
94
elem . slots . default . push ( child ) ;
95
- } else {
95
+ } else {
96
96
elem . slots [ slotName ] = child ;
97
- }
98
- } ) ;
99
- }
97
+ }
98
+ } ) ;
99
+ }
100
100
101
101
get renderRoot ( ) {
102
102
if ( hasNativeShadowDomSupport && this . useShadow === true ) {
You can’t perform that action at this time.
0 commit comments