Skip to content

Commit b25fcca

Browse files
author
Elson Correia
committed
fix overriding the event in the props 2
1 parent b491104 commit b25fcca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@beforesemicolon/markup",
3-
"version": "1.14.0",
3+
"version": "1.14.1",
44
"description": "Reactive HTML Templating System",
55
"engines": {
66
"node": ">=18.16.0"

src/html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ function createTemplate(
9999
templateString = templateString.trim()
100100

101101
const slots = new DoubleLinkedList<TemplateSlot>()
102-
const attrSlots: Record<string, AttributeSlot> = {}
103102

104103
const temp = parse(templateString, {
105104
createComment: (value) => document.createComment(value),
@@ -122,6 +121,7 @@ function createTemplate(
122121
createElementNS: (namespaceURI: string, tagName: string) => {
123122
const id = createId()
124123
const __self__ = document.createElementNS(namespaceURI, tagName)
124+
const attrSlots: Record<string, AttributeSlot> = {}
125125

126126
return {
127127
__self__,

0 commit comments

Comments
 (0)