Module Eliom_lib.Dom_reference
module Dom_reference : sig..end
type key
val new_key : unit -> key
val retain :
?key:key ->
'a Js_of_ocaml.Js.t -> keep:'b -> unit
retain v ~keep prevents keep from being garbage collected while v is live. An optional key can be specified if one needs to remove this association later one.
val retain_generic : ?key:key -> 'a -> keep:'b -> unit
Same as retain but works with any object. More error-prone
val release : key:key -> 'a -> unit
release ~key o removes the association between the value v and the value associated to key.
val transfer : key:key -> src:'a -> dst:'b -> unit
transfer ~key ~src ~dst transfers the association between the value src and the value associated to key key to value dst.