bugfix: apply class changes consistently

This commit is contained in:
Araq 2017-11-30 18:16:31 +01:00
commit be759d9b42
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
nimcache/
/tests/tester
*.exe

View file

@ -260,6 +260,7 @@ proc updateStyles(newNode, oldNode: VNode) =
if oldNode.dom != nil:
if newNode.style != nil: applyStyle(oldNode.dom, newNode.style)
else: oldNode.dom.style = Style()
oldNode.dom.class = newNode.class
oldNode.style = newNode.style
oldNode.class = newNode.class