chore: dynamic attributes cleanup

This commit is contained in:
Jonathan Kelley committed 2022-11-27 00:22:39 -05:00
1 parent bffb2644a3
commit 399169800d
6 files changed
+130 -61

No files matched your search

+9 -1
View File
@@ -80,7 +80,15 @@ impl<'b: 'static> VirtualDom {
// Else, it's deep in the template and we should create a new id for it
let id = match path.len() {
1 => this_id,
_ => self.next_element(template, template.template.attr_paths[attr_id]),
_ => {
let id = self
.next_element(template, template.template.attr_paths[attr_id]);
self.mutations.push(Mutation::AssignId {
path: &path[1..],
id,
});
id
}
};
loop {