Skip to content

Commit

Permalink
refactor(jsx/dom): remove redundant property "s", "shadow virtual dom…
Browse files Browse the repository at this point in the history
… children" is not used
  • Loading branch information
usualoma committed Aug 17, 2024
1 parent 03178cb commit 967c2e6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/jsx/dom/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export type NodeObject = {
vC: Node[] // virtual dom children
pC?: Node[] // previous virtual dom children
vR: Node[] // virtual dom children to remove
s?: Node[] // shadow virtual dom children
n?: string // namespace
f?: boolean // force build
c: Container | undefined // container
Expand Down Expand Up @@ -221,12 +220,6 @@ const applyProps = (
}

const invokeTag = (context: Context, node: NodeObject): Child[] => {
if (node.s) {
const res = node.s
node.s = undefined
return res as Child[]
}

node[DOM_STASH][0] = 0
buildDataStack.push([context, node])
const func = (node.tag as HasRenderToDom)[DOM_RENDERER] || node.tag
Expand Down

0 comments on commit 967c2e6

Please sign in to comment.