diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-09 00:27:22 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-09 00:27:22 +0200 |
| commit | 536bb55ce1d5bb23d642aa90a085548272eefba0 (patch) | |
| tree | 75f386aae2a3184b956ff5dab2d10d3fc3c8acae /src/z/Component.zig | |
| parent | 008f090e1de2773d501a8210bd54acc7d977ebf7 (diff) | |
fix event pointer resolving
Diffstat (limited to 'src/z/Component.zig')
| -rw-r--r-- | src/z/Component.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/z/Component.zig b/src/z/Component.zig index 408a76b..87001c2 100644 --- a/src/z/Component.zig +++ b/src/z/Component.zig @@ -112,7 +112,7 @@ fn linkAttributes(self: *const Self, attributes: []const Attribute) []const Attr const attribute: Attribute = .{ .name = attr.name, .value = std.fmt.comptimePrint( - "wasm_handle_event(\"export::{s}::{s}\", event, {})", + "wasm_handle_event(this, \"export::{s}::{s}\", event, {})", .{ self.name, attr.value[1..], handlerNeedsEvent(event_handler) }, ), }; |