From 48ce1c9054f7c33d3d7813c77dcf5bcbb52f778b Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Tue, 22 Nov 2016 17:45:51 -0500 Subject: [PATCH] fix component boolean attributes --- .../visitors/attributes/addComponentAttributes.js | 2 +- test/compiler/component-data-static-boolean/Foo.html | 1 + test/compiler/component-data-static-boolean/_config.js | 3 +++ test/compiler/component-data-static-boolean/main.html | 9 +++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 test/compiler/component-data-static-boolean/Foo.html create mode 100644 test/compiler/component-data-static-boolean/_config.js create mode 100644 test/compiler/component-data-static-boolean/main.html diff --git a/compiler/generate/visitors/attributes/addComponentAttributes.js b/compiler/generate/visitors/attributes/addComponentAttributes.js index 0f16ffea62..fb984f6010 100644 --- a/compiler/generate/visitors/attributes/addComponentAttributes.js +++ b/compiler/generate/visitors/attributes/addComponentAttributes.js @@ -9,7 +9,7 @@ export default function addComponentAttributes ( generator, node, local ) { if ( attribute.type === 'Attribute' ) { if ( attribute.value === true ) { // attributes without values, e.g.