Remove extra isLifecycleMethod call from removeAttr (#2594)

This commit is contained in:
ZeikJT 2020-05-17 00:50:16 -07:00 committed by GitHub
parent f9c9f6682d
commit cf7a841c4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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)