File tree 3 files changed +16
-5
lines changed
3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 121
121
"contributions" : [
122
122
" test"
123
123
]
124
+ },
125
+ {
126
+ "login" : " jgbowser" ,
127
+ "name" : " John Bowser" ,
128
+ "avatar_url" : " https://avatars.githubusercontent.com/u/66637570?v=4" ,
129
+ "profile" : " https://johnbowser.dev/" ,
130
+ "contributions" : [
131
+ " code" ,
132
+ " test"
133
+ ]
124
134
}
125
135
],
126
136
"contributorsPerLine" : 7 ,
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ Thanks goes to these people ([emoji key][emojis]):
134
134
<td align="center"><a href="https://github.com/MirrorBytes"><img src="https://avatars3.githubusercontent.com/u/22119469?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bob</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/issues?q=author%3AMirrorBytes" title="Bug reports">🐛</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=MirrorBytes" title="Code">💻</a></td>
135
135
<td align="center"><a href="https://github.com/ronmerkin"><img src="https://avatars.githubusercontent.com/u/17492527?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ron Merkin</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=ronmerkin" title="Code">💻</a></td>
136
136
<td align="center"><a href="http://www.benmccann.com"><img src="https://avatars.githubusercontent.com/u/322311?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ben McCann</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=benmccann" title="Tests">⚠️</a></td>
137
+ <td align="center"><a href="https://johnbowser.dev/"><img src="https://avatars.githubusercontent.com/u/66637570?v=4?s=100" width="100px;" alt=""/><br /><sub><b>John Bowser</b></sub></a><br /><a href="https://github.com/testing-library/svelte-testing-library/commits?author=jgbowser" title="Code">💻</a> <a href="https://github.com/testing-library/svelte-testing-library/commits?author=jgbowser" title="Tests">⚠️</a></td>
137
138
</tr >
138
139
</table >
139
140
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const render = (
49
49
return { props : options }
50
50
}
51
51
52
- const component = new ComponentConstructor ( {
52
+ let component = new ComponentConstructor ( {
53
53
target,
54
54
...checkProps ( options )
55
55
} )
@@ -67,15 +67,15 @@ const render = (
67
67
if ( componentCache . has ( component ) ) component . $destroy ( )
68
68
69
69
// eslint-disable-next-line no-new
70
- const newComponent = new ComponentConstructor ( {
70
+ component = new ComponentConstructor ( {
71
71
target,
72
72
...checkProps ( options )
73
73
} )
74
74
75
- containerCache . set ( container , { target, newComponent } )
76
- componentCache . add ( newComponent )
75
+ containerCache . set ( container , { target, component } )
76
+ componentCache . add ( component )
77
77
78
- newComponent . $$ . on_destroy . push ( ( ) => { componentCache . delete ( newComponent ) } )
78
+ component . $$ . on_destroy . push ( ( ) => { componentCache . delete ( component ) } )
79
79
} ,
80
80
unmount : ( ) => {
81
81
if ( componentCache . has ( component ) ) component . $destroy ( )
You can’t perform that action at this time.
0 commit comments