aboutsummaryrefslogtreecommitdiff
path: root/viz.js/dispatch.mli
diff options
context:
space:
mode:
Diffstat (limited to 'viz.js/dispatch.mli')
-rwxr-xr-xviz.js/dispatch.mli12
1 files changed, 12 insertions, 0 deletions
diff --git a/viz.js/dispatch.mli b/viz.js/dispatch.mli
new file mode 100755
index 0000000..8d8999b
--- /dev/null
+++ b/viz.js/dispatch.mli
@@ -0,0 +1,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