do not use _() in rt-class, fixes #179

This commit is contained in:
Antonino Porcino 2016-08-03 10:11:23 +02:00 committed by ido
parent 5c730e8b95
commit 9dbff140cf
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ const propsMergeFunction = `function mergeProps(inline,external) {
}
`;
const classSetTemplate = _.template('_(<%= classSet %>).transform(function(res, value, key){ if(value){ res.push(key); } }, []).join(" ")');
const classSetTemplate = _.template('_.transform(<%= classSet %>, function(res, value, key){ if(value){ res.push(key); } }, []).join(" ")');
function getTagTemplateString(simpleTagTemplate, shouldCreateElement) {
if (simpleTagTemplate) {