Skip to content

Commit ab5f15c

Browse files
committed
tweak
1 parent f36df5f commit ab5f15c

File tree

1 file changed

+2
-4
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/transform-template

1 file changed

+2
-4
lines changed

packages/svelte/src/compiler/phases/3-transform/client/transform-template/template.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ export class Template {
4545
}
4646

4747
push_element() {
48-
const element = /** @type {Element} */ (this.#element);
49-
this.#fragment = element.children;
48+
this.#fragment = /** @type {Element} */ (this.#element).children;
5049
this.#stack.push(this.#fragment);
5150
}
5251

@@ -60,7 +59,6 @@ export class Template {
6059
* @param {string | undefined} value
6160
*/
6261
set_prop(key, value) {
63-
const element = /** @type {Element} */ (this.#element);
64-
element.attributes[key] = value;
62+
/** @type {Element} */ (this.#element).attributes[key] = value;
6563
}
6664
}

0 commit comments

Comments
 (0)