aboutsummaryrefslogtreecommitdiff
path: root/viz.js/dispatch.mli
blob: 8d8999b1cc4d67c04418925ba5aa69a9b5ee4871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
open Js_of_ocaml

type t

(** Register a new function with the given event *)
val register: 'a Dom.Event.typ -> ('a -> unit) -> t

(* Remove the handler for the event *)
val remove: 'a Dom.Event.typ -> t -> unit

(* Call the event *)
val call: 'a Dom.Event.typ -> 'a -> unit