fix: sync with master

This commit is contained in:
Jonathan Kelley committed 2022-12-17 01:52:17 -08:00
1 parent cc7736302a
commit c409fecaaf
2 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -152,7 +152,7 @@ impl VirtualDom {
listeners.drain(..).for_each(|listener| {
let listener = unsafe { &*listener };
if let AttributeValue::Listener(l) = &listener.value {
_ = l.take();
_ = l.0.take();
}
});
}
+2 -4
View File
@@ -197,11 +197,9 @@ impl WebsysDom {
},
SetText { value, id } => i.set_text(id.0 as u32, value),
NewEventListener { name, id, .. } => {
i.new_event_listener(name, id.0 as u32, event_bubbles(&name[2..]) as u8);
}
RemoveEventListener { name, id } => {
i.remove_event_listener(name, id.0 as u32, event_bubbles(&name[2..]) as u8)
i.new_event_listener(name, id.0 as u32);
}
RemoveEventListener { name, id } => i.remove_event_listener(name, id.0 as u32),
Remove { id } => i.remove(id.0 as u32),
PushRoot { id } => i.push_root(id.0 as u32),
}