Avoid 'undefined' showing up in attributes when variable or value is missing

This commit is contained in:
Nathan Gray 2012-06-12 19:53:51 +00:00
parent 234832d1f0
commit a7654f7952

View File

@ -329,7 +329,7 @@
"]";
}
return result;
return '(typeof _'+_variable.variable+' != "undefined" && typeof '+result + '!="undefined" ? ' + result + ':"")';
}
_throwCompilerErr("Variable $" + _variable.variable + " is not defined.");