move custom hyperscript into common

This commit is contained in:
ansuz
2016-04-20 14:12:32 +02:00
parent e357549eda
commit 103bb69daa
2 changed files with 4 additions and 401 deletions

View File

@@ -98,7 +98,10 @@ function context () {
} else if (k.substr(0, 5) === "data-") {
e.setAttribute(k, l[k])
} else {
e[k] = l[k]
e.setAttribute(k, l[k])
if (e.getAttribute(k) !== l[k]) {
e[k] = l[k]
}
}
}
} else if ('function' === typeof l) {