chore: clean up interpreter and bindings

This commit is contained in:
Jonathan Kelley committed 2022-12-05 16:47:04 -08:00
1 parent 7b1cdb7d85
commit b182a6ee75
17 files changed
+34 -108

No files matched your search

-4
View File
@@ -45,8 +45,6 @@ impl VirtualDom {
let entry = self.elements.vacant_entry();
let id = entry.key();
println!("claiming {:?}", id);
entry.insert(ElementRef {
template: template as *const _ as *mut _,
path,
@@ -67,8 +65,6 @@ impl VirtualDom {
);
}
println!("Reclaiming {:?}", el.0);
self.elements.try_remove(el.0)
}
+4 -1
View File
@@ -277,7 +277,10 @@ pub enum TemplateAttribute<'a> {
/// The attribute in this position is actually determined dynamically at runtime
///
/// This is the index into the dynamic_attributes field on the container VNode
Dynamic(usize),
Dynamic {
/// The index
id: usize,
},
}
/// An attribute on a DOM node, such as `id="my-thing"` or `href="https://example.com"`