From 80239284de4153d7b896ba2c656fb565812b9302 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 23 Jul 2024 10:41:48 +0800 Subject: [PATCH] Refactor event handler variable name in SUI core --- sui/core/injections.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sui/core/injections.go b/sui/core/injections.go index ebcaaff7..afd08b2c 100644 --- a/sui/core/injections.go +++ b/sui/core/injections.go @@ -176,7 +176,7 @@ const compEventScriptTmpl = ` document.querySelector("[s\\:event=%s]").addEventListener("%s", function (event) { const dataKeys = %s; const jsonKeys = %s; - component = new %s(this).%s; + handler = new %s(this).%s; __sui_event_handler(event, dataKeys, jsonKeys, this, handler); }); `