Skip to content

Commit

Permalink
m.domFor(): workaround for unintentional mangling. Fix #2842
Browse files Browse the repository at this point in the history
  • Loading branch information
kfule committed Sep 27, 2024
1 parent e15602b commit bc082f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion render/domFor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

var delayedRemoval = new WeakMap

function *domFor({dom, domSize}, {generation} = {}) {
function *domFor(vnode, object = {}) {
var dom = vnode.dom
var domSize = vnode.domSize
var generation = object.generation
if (dom != null) do {
const {nextSibling} = dom

Expand Down

0 comments on commit bc082f7

Please sign in to comment.