diff --git a/shared/static/wasm/sx/dom.sx b/shared/static/wasm/sx/dom.sx index e2021db1..e8506300 100644 --- a/shared/static/wasm/sx/dom.sx +++ b/shared/static/wasm/sx/dom.sx @@ -97,7 +97,7 @@ (fn (child parent) (and child parent (host-call parent "contains" child)))) -(define dom-on +(define dom-listen (fn (el event-name handler) (host-call el "addEventListener" event-name (host-callback handler)))) diff --git a/web/lib/dom.sx b/web/lib/dom.sx index e2021db1..e8506300 100644 --- a/web/lib/dom.sx +++ b/web/lib/dom.sx @@ -97,7 +97,7 @@ (fn (child parent) (and child parent (host-call parent "contains" child)))) -(define dom-on +(define dom-listen (fn (el event-name handler) (host-call el "addEventListener" event-name (host-callback handler))))