Skip to content

Commit 44317dd

Browse files
committed
Remove test logs
1 parent 747d60e commit 44317dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/runtime/src/core.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class RuntimeCSS extends MasterCSS {
9797
const updatedConnectedElements = new Set<Element>()
9898
const updatedElements = new Set<Element>()
9999

100-
const updateClassUsage = (classes: Set<string> | string[] | DOMTokenList, isAdding = false, target?: Element) => {
100+
const updateClassUsage = (classes: Set<string> | string[] | DOMTokenList, isAdding = false) => {
101101
const usage = isAdding ? 1 : -1
102102
classes.forEach((className) => {
103103
// if (className === test) console.log(` ${isAdding ? '+' : '-'} ${className} ${(eachClassUsages.get(className) || 0) + usage}`, target)
@@ -110,7 +110,7 @@ export class RuntimeCSS extends MasterCSS {
110110
updatedConnectedElements.add(element)
111111
}
112112
updatedElements.add(element)
113-
updateClassUsage(element.classList, adding, element)
113+
updateClassUsage(element.classList, adding)
114114
for (const child of element.children) {
115115
updateElementTree(child as Element, adding)
116116
}
@@ -128,7 +128,7 @@ export class RuntimeCSS extends MasterCSS {
128128
newClassList.forEach(c => {
129129
if (!oldClassList.includes(c)) addedClasses.push(c)
130130
})
131-
const removedClasses = oldClassList.filter(c => !newClassList.contains(c))
131+
// const removedClasses = oldClassList.filter(c => !newClassList.contains(c))
132132
// if (addedClasses.length) console.log('[attribute]', '[add]', addedClasses, target)
133133
// if (removedClasses.length) console.log('[attribute]', '[remove]', removedClasses, target)
134134
break

0 commit comments

Comments
 (0)