From a45f16a7735978986b2884a14b52975fcb6d75b2 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Sat, 14 Jan 2023 11:57:36 -0800 Subject: [PATCH] chore: clean up comments --- packages/core/src/virtual_dom.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/src/virtual_dom.rs b/packages/core/src/virtual_dom.rs index 08a2bf4d0..d051e4de2 100644 --- a/packages/core/src/virtual_dom.rs +++ b/packages/core/src/virtual_dom.rs @@ -384,8 +384,6 @@ impl VirtualDom { data, }; - // Remove the "on" prefix if it exists, TODO, we should remove this and settle on one - // Loop through each dynamic attribute in this template before moving up to the template's parent. while let Some(el_ref) = parent_path { // safety: we maintain references of all vnodes in the element slab @@ -396,6 +394,7 @@ impl VirtualDom { for (idx, attr) in template.dynamic_attrs.iter().enumerate() { let this_path = node_template.attr_paths[idx]; + // Remove the "on" prefix if it exists, TODO, we should remove this and settle on one if attr.name.trim_start_matches("on") == name && target_path.is_ascendant(&this_path) {