Last active
December 10, 2015 18:38
-
-
Save annevk/4475457 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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