From 5638aadf6a7352c516b184e0c0dbccd229eb2fec Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Mon, 13 Mar 2023 18:11:29 +0100 Subject: [PATCH] comment --- .../compile/render_dom/wrappers/Element/Binding.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts index 78417b61d8..03f21c0fd9 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts @@ -321,9 +321,10 @@ function get_binding_group(renderer: Renderer, binding: BindingWrapper, block: B parent = parent.parent; } - // when using bind:group with logic blocks, the with bind:group - // maybe scatter across different blocks - // will need to keep track all the elements that has the same bind:group within the same block + /** + * When using bind:group with logic blocks, the inputs with bind:group may be scattered across different blocks. + * This therefore keeps track of all the elements that have the same bind:group within the same block. + */ const elements = new Map(); contexts.forEach(context => {