aboutsummaryrefslogtreecommitdiff
path: root/src/Lib/Dom/Element.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/Lib/Dom/Element.ml')
-rw-r--r--src/Lib/Dom/Element.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Lib/Dom/Element.ml b/src/Lib/Dom/Element.ml
index 3c63ef4..90c0321 100644
--- a/src/Lib/Dom/Element.ml
+++ b/src/Lib/Dom/Element.ml
@@ -27,6 +27,9 @@ external first_child : Dom.element -> Dom.element Js.Nullable.t = "firstChild"
external remove_child : Dom.element -> Dom.element -> unit = "removeChild"
[@@bs.send]
+external click : Dom.element -> unit = "click"
+ [@@bs.send]
+
let remove_first_child element =
match Js.toOption (first_child element) with
| Some child ->