fix: component pass thru events

This commit is contained in:
Jonathan Kelley committed 2022-01-07 11:51:25 -05:00
1 parent b49928a4ac
commit c439b0ac7e
7 files changed
+37 -31

No files matched your search

+1 -4
View File
@@ -43,10 +43,7 @@ pub mod on {
// ie copy
let shortname: &'static str = &event_name[2..];
let handler = EventHandler {
callback: bump.alloc(std::cell::RefCell::new(Some(callback))),
};
let handler = bump.alloc(std::cell::RefCell::new(Some(callback)));
factory.listener(shortname, handler)
}
)*