commit
25b82d33e0
1 changed files with 1 additions and 0 deletions
|
|
@ -73,6 +73,7 @@ window.templateConverter = (function () {
|
||||||
|
|
||||||
each(Object.keys(el.attrs).sort(), function (attrName) {
|
each(Object.keys(el.attrs).sort(), function (attrName) {
|
||||||
if (attrName === "style") return
|
if (attrName === "style") return
|
||||||
|
if(el.attrs[attrName]===undefined) return;
|
||||||
virtual += "[" + attrName + "='"
|
virtual += "[" + attrName + "='"
|
||||||
virtual += el.attrs[attrName].replace(/'/g, "\\'") + "']"
|
virtual += el.attrs[attrName].replace(/'/g, "\\'") + "']"
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue