Skip to content

Commit

Permalink
Merge pull request #353 from pearmini/main
Browse files Browse the repository at this point in the history
Refactor for size optimization
  • Loading branch information
Tao-VanJS authored Aug 19, 2024
2 parents 40234b5 + efe4112 commit 0eb57a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/van.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ let tag = (ns, name, ...args) => {
Object.getOwnPropertyDescriptor(proto, k) ?? getPropDescriptor(protoOf(proto)) :
_undefined
let cacheKey = name + "," + k
let propSetter = propSetterCache[cacheKey] ??
(propSetterCache[cacheKey] = getPropDescriptor(protoOf(dom))?.set ?? 0)
let propSetter = (propSetterCache[cacheKey] ??= getPropDescriptor(protoOf(dom))?.set ?? 0)
let setter = k.startsWith("on") ?
(v, oldV) => {
let event = k.slice(2)
Expand Down

0 comments on commit 0eb57a2

Please sign in to comment.