Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
callback EventCallback = void (Event event);
dictionary EventOptions {
DOMString filter; // selector (only useful if target is an element)
boolean capture = false; // (!capture && !bubble) target
boolean bubble; // (capture && !bubble) capture + target
// (capture && bubble) capture + target + bubble
boolean ignoreBubbles = true; // ignore bubbles attribute
}
partial interface EventTarget {
Function on((DOMString or sequence<DOMString>) types, EventCallback callback, optional EventOptions options);
Function on(dictionary<EventCallback> typesAndCallbacks, optional EventOptions options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.