Feat: context api wired up

This commit is contained in:
Jonathan Kelley committed 2021-05-18 01:16:43 -04:00
1 parent 4c8130c4e4
commit 24805a02f6
7 files changed
+373 -294

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ pub mod on {
let bump = &c.bump();
Listener {
event: stringify!($name),
id: *c.idx.borrow(),
id: *c.listener_id.borrow(),
scope: c.scope_ref.myidx,
callback: bump.alloc(move |evt: VirtualEvent| match evt {
VirtualEvent::$eventdata(event) => callback(event),