chore: use trim

This commit is contained in:
Jonathan Kelley committed 2023-01-14 00:21:26 -08:00
1 parent 8d59c626ea
commit 40a36aa8e6
1 file changed
+1 -3
+1 -3
View File
@@ -385,9 +385,7 @@ impl VirtualDom {
};
// Remove the "on" prefix if it exists, TODO, we should remove this and settle on one
if name.starts_with("on") {
name = &name[2..];
}
name = name.trim_start_matches("on");
// Loop through each dynamic attribute in this template before moving up to the template's parent.
while let Some(el_ref) = parent_path {