aboutsummaryrefslogtreecommitdiff
path: root/src/z/Component.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 00:27:22 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-09 00:27:22 +0200
commit536bb55ce1d5bb23d642aa90a085548272eefba0 (patch)
tree75f386aae2a3184b956ff5dab2d10d3fc3c8acae /src/z/Component.zig
parent008f090e1de2773d501a8210bd54acc7d977ebf7 (diff)
fix event pointer resolving
Diffstat (limited to 'src/z/Component.zig')
-rw-r--r--src/z/Component.zig2
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) },
),
};