Remove extra isLifecycleMethod call from removeAttr (#2594)
This commit is contained in:
parent
f9c9f6682d
commit
cf7a841c4c
2 changed files with 2 additions and 1 deletions
|
|
@ -760,7 +760,7 @@ module.exports = function($window) {
|
|||
}
|
||||
function removeAttr(vnode, key, old, ns) {
|
||||
if (key === "key" || key === "is" || old == null || isLifecycleMethod(key)) return
|
||||
if (key[0] === "o" && key[1] === "n" && !isLifecycleMethod(key)) updateEvent(vnode, key, undefined)
|
||||
if (key[0] === "o" && key[1] === "n") updateEvent(vnode, key, undefined)
|
||||
else if (key === "style") updateStyle(vnode.dom, old, null)
|
||||
else if (
|
||||
hasPropertyKey(vnode, key, ns)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue