From 622219801714491776297bfa70f496e4cda3dee2 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 14 Aug 2017 12:28:58 -0400 Subject: [PATCH] add note to self --- src/generators/dom/visitors/Element/Attribute.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generators/dom/visitors/Element/Attribute.ts b/src/generators/dom/visitors/Element/Attribute.ts index 80b363bd01..12a6842658 100644 --- a/src/generators/dom/visitors/Element/Attribute.ts +++ b/src/generators/dom/visitors/Element/Attribute.ts @@ -51,6 +51,8 @@ export default function visitAttribute( let shouldCache; let hasChangeableIndex; + // TODO some of this code is repeated in Tag.ts — would be good to + // DRY it out if that's possible without introducing crazy indirection if (attribute.value.length === 1) { // single {{tag}} — may be a non-string const { expression } = attribute.value[0];