aboutsummaryrefslogtreecommitdiff
path: root/src/z/Component.zig
diff options
context:
space:
mode:
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) },
),
};