do not use _() in rt-class, fixes #179
This commit is contained in:
parent
5c730e8b95
commit
9dbff140cf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue