Skip to content

Commit

Permalink
Change class set template for compatibility with lodash 4
Browse files Browse the repository at this point in the history
  • Loading branch information
mariawix committed Apr 6, 2016
1 parent 2bcfcc7 commit e56cd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reactTemplates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e56cd6d

Please sign in to comment.