@@ -2699,23 +2699,29 @@ class Window
2699
2699
*/
2700
2700
trait EventListenerOptions extends js.Object {
2701
2701
/**
2702
- * A Boolean indicating that events of this type will be dispatched to the registered listener
2703
- * before being dispatched to any EventTarget beneath it in the DOM tree.
2702
+ * A Boolean indicating that events of this type
2703
+ * will be dispatched to the registered listener
2704
+ * before being dispatched to any EventTarget
2705
+ * beneath it in the DOM tree.
2704
2706
*
2705
2707
* MDN
2706
2708
*/
2707
2709
var capture : js.UndefOr [Boolean ] = js.undefined
2708
2710
2709
2711
/**
2710
- * A Boolean indicating that the listener should be invoked at most once after being added.
2712
+ * A Boolean indicating that the listener
2713
+ * should be invoked at most once after being added.
2711
2714
* If true, the listener would be automatically removed when invoked.
2712
2715
*/
2713
2716
var once : js.UndefOr [Boolean ] = js.undefined
2714
2717
2715
2718
/**
2716
- * A Boolean which, if true, indicates that the function specified by listener will never call preventDefault().
2719
+ * A Boolean which, if true, indicates
2720
+ * that the function specified by listener
2721
+ * will never call preventDefault().
2717
2722
* If a passive listener does call preventDefault(),
2718
- * the user agent will do nothing other than generate a console warning.
2723
+ * the user agent will do nothing other
2724
+ * than generate a console warning.
2719
2725
* See Improving scrolling performance with passive listeners to learn more.
2720
2726
*
2721
2727
* MDN
@@ -2724,8 +2730,8 @@ trait EventListenerOptions extends js.Object {
2724
2730
}
2725
2731
2726
2732
/**
2727
- * EventTarget is a DOM interface implemented by objects that can receive DOM events
2728
- * and have listeners for them.
2733
+ * EventTarget is a DOM interface implemented by objects
2734
+ * that can receive DOM events and have listeners for them.
2729
2735
*
2730
2736
* Element, document, and window are the most common event targets, but other
2731
2737
* objects can be event targets too, for example XMLHttpRequest, AudioNode,
@@ -2763,10 +2769,12 @@ class EventTarget extends js.Object {
2763
2769
useCapture : Boolean = js.native): Unit = js.native
2764
2770
2765
2771
/**
2766
- * The EventTarget.addEventListener() method registers the specified listener on
2767
- * the EventTarget it's called on. The event target may be an Element in a document, the
2768
- * Document itself, a Window, or any other object that supports events (such as
2769
- * XMLHttpRequest).
2772
+ * The EventTarget.addEventListener() method
2773
+ * registers the specified listener
2774
+ * on the EventTarget it's called on.
2775
+ * The event target may be an Element in a document,
2776
+ * the Document itself, a Window, or any other object that supports events
2777
+ * (such as XMLHttpRequest).
2770
2778
*
2771
2779
* This implementation accepts a settings object of type EventListenerOptions.
2772
2780
*
0 commit comments