Skip to content

Commit

Permalink
do not use _() in rt-class, fixes #179
Browse files Browse the repository at this point in the history
  • Loading branch information
nippur72 authored and ido committed Dec 29, 2016
1 parent 5c730e8 commit 9dbff14
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 @@ -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) {
Expand Down

0 comments on commit 9dbff14

Please sign in to comment.