Change class set template for compatibility with lodash 4

This commit is contained in:
maria 2016-04-06 16:48:40 +03:00
parent 2bcfcc738e
commit e56cd6d06a
1 changed files with 1 additions and 1 deletions

View File

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