We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f36df5f commit ab5f15cCopy full SHA for ab5f15c
packages/svelte/src/compiler/phases/3-transform/client/transform-template/template.js
@@ -45,8 +45,7 @@ export class Template {
45
}
46
47
push_element() {
48
- const element = /** @type {Element} */ (this.#element);
49
- this.#fragment = element.children;
+ this.#fragment = /** @type {Element} */ (this.#element).children;
50
this.#stack.push(this.#fragment);
51
52
@@ -60,7 +59,6 @@ export class Template {
60
59
* @param {string | undefined} value
61
*/
62
set_prop(key, value) {
63
64
- element.attributes[key] = value;
+ /** @type {Element} */ (this.#element).attributes[key] = value;
65
66
0 commit comments