don't render undefined classes
This commit is contained in:
parent
0682932f63
commit
741e588f4d
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ window.templateConverter = (function () {
|
||||||
|
|
||||||
if (el.attrs.class) {
|
if (el.attrs.class) {
|
||||||
virtual += "." + el.attrs.class.replace(/\s+/g, ".")
|
virtual += "." + el.attrs.class.replace(/\s+/g, ".")
|
||||||
el.attrs.class = undefined
|
delete el.attrs.class
|
||||||
}
|
}
|
||||||
|
|
||||||
each(Object.keys(el.attrs).sort(), function (attrName) {
|
each(Object.keys(el.attrs).sort(), function (attrName) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue