fix class removal

This commit is contained in:
Leo Horie 2016-09-12 09:45:57 -04:00
parent f0888ac7bd
commit b9244f4c21
2 changed files with 12 additions and 0 deletions

View file

@ -431,6 +431,7 @@ module.exports = function($window) {
if (old != null) {
for (var key in old) {
if (attrs == null || !(key in attrs)) {
if (key === "className") key = "class"
if (key[0] === "o" && key[1] === "n" && !isLifecycleMethod(key)) updateEvent(vnode, key, undefined)
else if (key !== "key") vnode.dom.removeAttribute(key)
}