Skip to content

Commit

Permalink
Remove code when vnode.attrs is null
Browse files Browse the repository at this point in the history
Because vnode.attrs is never null by commit f9e5163
  • Loading branch information
kfule committed Feb 10, 2023
1 parent a1159b7 commit e876753
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions render/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,6 @@ module.exports = function($window) {
var element = vnode.dom = old.dom
ns = getNameSpace(vnode) || ns

if (vnode.tag === "textarea") {
if (vnode.attrs == null) vnode.attrs = {}
}
updateAttrs(vnode, old.attrs, vnode.attrs, ns)
if (!maybeSetContentEditable(vnode)) {
updateNodes(element, old.children, vnode.children, hooks, null, ns)
Expand Down

0 comments on commit e876753

Please sign in to comment.