fix(compiler): ensure template is updated if an output is transformed (#29041)

No idea where the tests for this code are, but it looks like this was an
oversight in the original commit 6a0f78.

PR Close #29041
This commit is contained in:
Pete Bacon Darwin 2019-03-07 08:31:30 +00:00 committed by Kara Erickson
parent b73e02005b
commit c7e4931f32
1 changed files with 2 additions and 2 deletions

View File

@ -193,8 +193,8 @@ export class TransformVisitor implements Visitor<Node> {
const newReferences = transformAll(this, template.references);
const newVariables = transformAll(this, template.variables);
if (newAttributes != template.attributes || newInputs != template.inputs ||
newChildren != template.children || newVariables != template.variables ||
newReferences != template.references) {
newOutputs != template.outputs || newChildren != template.children ||
newReferences != template.references || newVariables != template.variables) {
return new Template(
template.tagName, newAttributes, newInputs, newOutputs, newChildren, newReferences,
newVariables, template.sourceSpan, template.startSourceSpan, template.endSourceSpan);