move custom hyperscript into common

This commit is contained in:
ansuz committed 2016-04-20 14:13:08 +02:00
1 parent e357549eda
commit 103bb69daa
2 files changed
+4 -401

No files matched your search

+4 -1
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) {