Module Browser_extraSource

This library provides utility functions that complement the bindings in the Browser and Browser_expert libraries.

Sourcemodule Coercion : sig ... end

Coercion provides utility functions for common coercions known to be equivalent. Please note that some of these coercions are possibly unsafe if a subclass overrides an ancestor class method with a completely different return type

Sourcemodule Event_type : sig ... end

Event_type enumerates all *known event types allow with the interface(s) they use and the event targets that support them.

add_event_listener_with_cleanup add the provided listener to the EventTarget and returns a cleanup function that removes the event listener when called.

Sourceval remove_event_listener : Browser_js_types.event_id -> unit

remove_event_listener invokes the cleanup function returned by the add_event_listener_with_cleanup