Class type Goog.​Events.​eventWrapper

class type eventWrapper = object..end

method listen : 
(eventTarget Js.t, Dom_html.eventTarget Js.t)
Goog.Tools.Union.t ->
(unit -> unit) Js.opt ->
bool Js.t Js.opt -> eventHandler Js.t Js.opt -> unit Js.meth

Adds an event listener using the wrapper on a DOM Node or an object that has implemented goog.events.EventTarget. A listener can only be added once to an object.

method unlisten : 
(eventTarget Js.t, Dom_html.eventTarget Js.t)
Goog.Tools.Union.t ->
(unit -> unit) Js.opt ->
bool Js.t Js.opt -> eventHandler Js.t Js.opt -> unit Js.meth

Removes an event listener added using goog.events.EventWrapper.listen.