File tree 2 files changed +4
-7
lines changed
packages/svelte/tests/runtime-legacy/samples
attribute-casing-custom-element
attribute-custom-element-inheritance
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 18
18
this .innerHTML = ' Hello ' + this ._obj .text + ' !' ;
19
19
}
20
20
}
21
- if (! window .customElements .get (' my-custom-element' )) {
22
- window .customElements .define (' my-custom-element' , MyCustomElement);
23
- }
21
+
22
+ window .customElements .define (' my-custom-element' , MyCustomElement);
24
23
</script >
25
24
26
25
<my-custom-element camelCase ={{ text : ' World' }} />
Original file line number Diff line number Diff line change 26
26
}
27
27
28
28
class Extended extends MyCustomElement {}
29
-
30
- if (! window .customElements .get (' my-custom-inheritance-element' )) {
31
- window .customElements .define (' my-custom-inheritance-element' , Extended);
32
- }
29
+
30
+ window .customElements .define (' my-custom-inheritance-element' , Extended);
33
31
</script >
34
32
35
33
<my-custom-inheritance-element camelCase ={{ text : ' World' }} text =" !" />
You can’t perform that action at this time.
0 commit comments