Skip to content

Commit 0eb57a2

Browse files
authored
Merge pull request #353 from pearmini/main
Refactor for size optimization
2 parents 40234b5 + efe4112 commit 0eb57a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/van.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ let tag = (ns, name, ...args) => {
100100
Object.getOwnPropertyDescriptor(proto, k) ?? getPropDescriptor(protoOf(proto)) :
101101
_undefined
102102
let cacheKey = name + "," + k
103-
let propSetter = propSetterCache[cacheKey] ??
104-
(propSetterCache[cacheKey] = getPropDescriptor(protoOf(dom))?.set ?? 0)
103+
let propSetter = (propSetterCache[cacheKey] ??= getPropDescriptor(protoOf(dom))?.set ?? 0)
105104
let setter = k.startsWith("on") ?
106105
(v, oldV) => {
107106
let event = k.slice(2)

0 commit comments

Comments
 (0)