Skip to content

Commit

Permalink
emmm
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Oct 18, 2023
1 parent ccc1d90 commit 828ac36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function removeDom(parent, ref) {
}
}

function reconcileAttributes(dom, newProps, oldProps, isSvg) {
function reconcileProps(dom, newProps, oldProps, isSvg) {
for (var key in newProps) {
if (key === "key" || key === "children") continue
var oldValue = oldProps[key]
Expand Down Expand Up @@ -208,7 +208,7 @@ function reconcile(
newVnode.type === oldVnode.type
) {
isSvg = isSvg || newVnode.type === 'svg'
reconcileAttributes(ref.node, newVnode.props, oldVnode.props, isSvg)
reconcileProps(ref.node, newVnode.props, oldVnode.props, isSvg)
let oldCh = oldVnode.props.children
let newCh = newVnode.props.children
if (oldCh == null) {
Expand Down

0 comments on commit 828ac36

Please sign in to comment.