Skip to content

Commit

Permalink
Merge pull request #351 from timhall/remove-let
Browse files Browse the repository at this point in the history
Remove ES2015 let from css block
  • Loading branch information
Rich-Harris authored Mar 7, 2017
2 parents e63a112 + 9b2e78a commit 93b0b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/dom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default function dom ( parsed, source, options, names ) {

if ( parsed.css && options.css !== false ) {
builders.main.addBlock( deindent`
let addedCss = false;
var addedCss = false;
function addCss () {
var style = ${generator.helper( 'createElement' )}( 'style' );
style.textContent = ${JSON.stringify( processCss( parsed, generator.code ) )};
Expand Down

0 comments on commit 93b0b0e

Please sign in to comment.