fix: component pass thru events
This commit is contained in:
1 parent
b49928a4ac
commit
c439b0ac7e
7 files changed
+37
-31
No files matched your search
@@ -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)
|
||||
}
|
||||
)*
|
||||
|
||||
Reference in new issue
Block a user