jon.recoil.org

Module Js_of_ocaml.FileSource

File API

Sourceclass type blob = object ... end
Sourcetype 'a make_blob = ?contentType:string -> ?endings:[ `Transparent | `Native ] -> 'a -> blob Js_of_ocaml.Js.t
Sourceval blob_from_string : string Js_of_ocaml.File.make_blob
Sourceclass type file = object ... end
Sourcetype file_any
Sourcemodule CoerceTo : sig ... end
Sourceclass type fileList = object ... end
Sourceclass type fileError = object ... end
Sourceclass type 'a progressEvent = object ... end
Sourceclass type progressEventTarget = object ... end
Sourcetype readyState =
  1. | EMPTY
  2. | LOADING
  3. | DONE
Sourceclass type fileReader = object ... end
Sourcemodule ReaderEvent : sig ... end

filename handles old firefox without name property

Add an event listener. This function matches the addEventListener DOM method, except that it returns an id for removing the listener.