fix for issue #915
Added undefined check at line 76 to prevent an uncaught type error which was occurring when the class attribute was encountered.
This commit is contained in:
parent
62dd3d12ce
commit
46b18caec6
1 changed files with 1 additions and 0 deletions
|
|
@ -73,6 +73,7 @@ window.templateConverter = (function () {
|
|||
|
||||
each(Object.keys(el.attrs).sort(), function (attrName) {
|
||||
if (attrName === "style") return
|
||||
if(el.attrs[attrName]===undefined) return;
|
||||
virtual += "[" + attrName + "='"
|
||||
virtual += el.attrs[attrName].replace(/'/g, "\\'") + "']"
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue