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:
Cody Phillips 2016-01-17 19:31:17 -05:00
parent 62dd3d12ce
commit 46b18caec6

View file

@ -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, "\\'") + "']"
})