From 2fa8731d3e31763ba4dbaf074157a0ed6862bc1e Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sat, 4 Nov 2023 13:23:15 +0000 Subject: :sparkles: Add the 'effect.event' constructor and use it for 'event.emit'. --- src/lustre.ffi.mjs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/lustre.ffi.mjs') diff --git a/src/lustre.ffi.mjs b/src/lustre.ffi.mjs index 95770e4..918f7e2 100644 --- a/src/lustre.ffi.mjs +++ b/src/lustre.ffi.mjs @@ -125,13 +125,6 @@ export const setup = (init, update, render) => new App(init, update, render); export const start = (app, selector, flags) => app.start(selector, flags); export const destroy = (app) => app.destroy(); -export const emit = (name, data) => - // Normal `Effect`s constructed in Gleam from `effect.from` don't get told - // about the second argument, but it's there 👀. - from((_, emit) => { - emit(name, data); - }); - // HTML EVENTS ----------------------------------------------------------------- export const prevent_default = (e) => e.preventDefault?.(); -- cgit v1.2.3