Bundled output for commit d20e8a880f [skip ci]

This commit is contained in:
Gandalf-the-Bot 2016-11-22 05:32:22 +00:00
parent d20e8a880f
commit ac159008dc
2 changed files with 18 additions and 17 deletions

View file

@ -30,7 +30,8 @@ function hyperscript(selector) {
else if (match[3][0] === "[") {
var attrValue = match[6]
if (attrValue) attrValue = attrValue.replace(/\\(["'])/g, "$1").replace(/\\\\/g, "\\")
attributes[match[4]] = attrValue || true
if (match[4] === "class") classes.push(attrValue)
else attributes[match[4]] = attrValue || true
}
}
if (classes.length > 0) attributes.className = classes.join(" ")