aboutsummaryrefslogtreecommitdiff
path: root/src/lustre.ffi.mjs
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-11-04 13:23:15 +0000
committerHayleigh Thompson <me@hayleigh.dev>2023-11-04 13:23:15 +0000
commit2fa8731d3e31763ba4dbaf074157a0ed6862bc1e (patch)
treede3b4c0acdbd6b324630cb34065e362ddff88b1e /src/lustre.ffi.mjs
parente0155c7be10901ceb4d11cb5333f92bc272b5499 (diff)
downloadlustre-2fa8731d3e31763ba4dbaf074157a0ed6862bc1e.tar.gz
lustre-2fa8731d3e31763ba4dbaf074157a0ed6862bc1e.zip
:sparkles: Add the 'effect.event' constructor and use it for 'event.emit'.
Diffstat (limited to 'src/lustre.ffi.mjs')
-rw-r--r--src/lustre.ffi.mjs7
1 files changed, 0 insertions, 7 deletions
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?.();