Allow [class] selectors in hyperscript as per 6b2750e
This commit is contained in:
parent
6b2750ea59
commit
fbee0a5c1a
2 changed files with 3 additions and 2 deletions
|
|
@ -112,7 +112,8 @@
|
||||||
} else if (match[3].charAt(0) === "[") { // #1195
|
} else if (match[3].charAt(0) === "[") { // #1195
|
||||||
var attrValue = match[6]
|
var attrValue = match[6]
|
||||||
if (attrValue) attrValue = attrValue.replace(/\\(["'])/g, "$1")
|
if (attrValue) attrValue = attrValue.replace(/\\(["'])/g, "$1")
|
||||||
cell.attrs[match[4]] = attrValue || true
|
if (match[4] === "class") classes.push(attrValue)
|
||||||
|
else cell.attrs[match[4]] = attrValue || true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
2
mithril.min.js
vendored
2
mithril.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue