aboutsummaryrefslogtreecommitdiff
path: root/src/lustre.ffi.mjs
diff options
context:
space:
mode:
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?.();