complete base implementation of todoapp

This commit is contained in:
Géry Debongnie
2019-03-20 13:36:37 +01:00
parent 9baf3ad4a7
commit c32f1d1e38
5 changed files with 104 additions and 33 deletions
-1
View File
@@ -35,7 +35,6 @@ function updateAttrs(oldVnode: VNode, vnode: VNode): void {
for (key in attrs) {
const cur = attrs[key];
const old = oldAttrs[key];
debugger;
if (old !== cur) {
if (cur === true) {
elm.setAttribute(key, "");