chore: simplify liveview abstraction

This commit is contained in:
Jonathan Kelley committed 2022-12-15 18:46:59 -08:00
1 parent 44dde38c63
commit 7790d2c065
8 files changed
+142 -82

No files matched your search

+2
View File
@@ -27,6 +27,7 @@ pub struct HtmlEvent {
pub element: ElementId,
pub name: String,
pub data: EventData,
pub bubbles: bool,
}
impl HtmlEvent {
@@ -85,6 +86,7 @@ fn test_back_and_forth() {
element: ElementId(0),
data: EventData::Mouse(MouseData::default()),
name: "click".to_string(),
bubbles: true,
};
println!("{}", serde_json::to_string_pretty(&data).unwrap());