Skip to content

Commit

Permalink
fix use Node.append_child, since Node.append is gone
Browse files Browse the repository at this point in the history
  • Loading branch information
rizo committed Apr 2, 2024
1 parent 4a5c506 commit 33e2179
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vendor/html/src/Html.ml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ let on_double_click ?confirm handler =
(* Elem *)

module Elem_util = struct
let mount ~parent ?(insert = Dom.Node.append parent) html =
let mount ~parent ?(insert = Dom.Node.append_child ~parent) html =
html.mount ~parent ~insert

let unmount html = html.unmount ()
Expand Down
6 changes: 3 additions & 3 deletions vendor/stdweb/examples/Events.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ let () =
Dom.Node.set_text_content lnk "Link";
Dom.Node.set_href lnk "#";

Dom.Node.append main btn;
Dom.Node.append main inp;
Dom.Node.append main lnk;
Dom.Node.append_child ~parent:main btn;
Dom.Node.append_child ~parent:main inp;
Dom.Node.append_child ~parent:main lnk;

(* Element listener *)
Dom.Node.bind btn Dom.Event.click (fun ev ->
Expand Down

0 comments on commit 33e2179

Please sign in to comment.