fix event proxy not being able to remove handlers

This commit is contained in:
velzie 2024-07-29 14:04:31 -04:00
parent eaea40bfee
commit ca1574fccc
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F

View file

@ -72,6 +72,8 @@ export default function (client: ScramjetClient, self: Self) {
set(ctx, value: any) {
this[realOnEvent] = value;
if (typeof value !== "function") return ctx.set(value);
ctx.set(wraplistener(value));
},
});