chore: dynamic attributes cleanup
This commit is contained in:
1 parent
bffb2644a3
commit
399169800d
6 files changed
+130
-61
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user