Liking cljdoc? Tell your friends :D

web.EventTarget

EventTarget is a DOM interface implemented by objects that can events and may have listeners for them.

EventTarget is a DOM interface implemented by objects that can
events and may have listeners for them.
raw docstring

add-event-listenercljs

(add-event-listener this & args)

Method.

The web.EventTarget method addEventListener() sets up a function will be called whenever the specified event is delivered to the

target.addEventListener(type, listener[, options]); target.addEventListener(type, listener[, useCapture]); target.addEventListener(type, listener[, useCapture, wantsUntrusted ]); // Gecko/Mozilla only

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener

Method.

The `web.EventTarget` method addEventListener() sets up a function
will be called whenever the specified event is delivered to the

`target.addEventListener(type, listener[, options]);
target.addEventListener(type, listener[, useCapture]);
target.addEventListener(type, listener[, useCapture, wantsUntrusted  ]); // Gecko/Mozilla only`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener`
sourceraw docstring

constructorcljs

Constructor.

The EventTarget() constructor creates a new web.EventTarget object instance.

None.

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/EventTarget

Constructor.

The EventTarget() constructor creates a new `web.EventTarget` object instance.

None.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/EventTarget`
sourceraw docstring

dispatch-eventcljs

(dispatch-event this event)

Method.

Dispatches an web.event.Event at the specified web.EventTarget, invoking the affected web.EventListeners in the appropriate The normal event processing rules (including the capturing and bubbling phase) also apply to events dispatched manually with

cancelled = !target.dispatchEvent(event)

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent

Method.

Dispatches an `web.event.Event` at the specified `web.EventTarget`,
invoking the affected `web.EventListener`s in the appropriate
The normal event processing rules (including the capturing and
bubbling phase) also apply to events dispatched manually with

`cancelled = !target.dispatchEvent(event)`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent`
sourceraw docstring

remove-event-listenercljs

(remove-event-listener this & args)

Method.

The EventTarget.removeEventListener() method removes from the an event listener previously registered with EventTarget.addEventListener(). event listener to be removed is identified using a combination the event type, the event listener function itself, and various options that may affect the matching process; see Matching event for removal

target.removeEventListener(type, listener[, options]); target.removeEventListener(type, listener[, useCapture]);

See also: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener

Method.

The EventTarget.removeEventListener() method removes from the
an event listener previously registered with `EventTarget.addEventListener()`.
event listener to be removed is identified using a combination
the event type, the event listener function itself, and various
options that may affect the matching process; see Matching event
for removal

`target.removeEventListener(type, listener[, options]);
target.removeEventListener(type, listener[, useCapture]);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close