Skip to content

Commit

Permalink
add comment why parameter destructuring is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
kfule authored Sep 27, 2024
1 parent bc082f7 commit 6777179
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion render/domFor.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
var delayedRemoval = new WeakMap

function *domFor(vnode, object = {}) {
// To avoid unintended mangling of the internal bundler,
// parameter destructuring is not used here.
var dom = vnode.dom
var domSize = vnode.domSize
var generation = object.generation
Expand All @@ -22,4 +24,4 @@ function *domFor(vnode, object = {}) {
module.exports = {
delayedRemoval: delayedRemoval,
domFor: domFor,
}
}

0 comments on commit 6777179

Please sign in to comment.