@@ -3,56 +3,47 @@ package org.scalajs.dom
33import scala .scalajs .js
44import scala .scalajs .js .annotation .JSGlobal
55
6- /**
7- * The AbortController interface represents a controller object that allows you
8- * to abort one or more DOM requests as and when desired.
9- *
10- * MDN
11- */
6+ /** The AbortController interface represents a controller object that allows you to abort one or more DOM requests as
7+ * and when desired.
8+ *
9+ * MDN
10+ */
1211@ js.native
1312@ JSGlobal
1413class AbortController () extends js.Object {
1514
16- /**
17- * Returns a AbortSignal object instance, which can be used to communicate
18- * with/abort a DOM request
19- *
20- * MDN
21- */
15+ /** Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request
16+ *
17+ * MDN
18+ */
2219 val signal : AbortSignal = js.native
2320
24- /**
25- * Aborts a DOM request before it has completed. This is able to abort fetch
26- * requests, consumption of any response Body, and streams.
27- *
28- * MDN
29- */
21+ /** Aborts a DOM request before it has completed. This is able to abort fetch requests, consumption of any response
22+ * Body, and streams.
23+ *
24+ * MDN
25+ */
3026 def abort (): Unit = js.native
3127}
3228
33- /**
34- * The AbortSignal interface represents a signal object that allows you to
35- * communicate with a DOM request (such as a Fetch) and abort it if required
36- * via an AbortController object.
37- *
38- * MDN
39- */
29+ /** The AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a
30+ * Fetch) and abort it if required via an AbortController object.
31+ *
32+ * MDN
33+ */
4034@ js.native
4135trait AbortSignal extends EventTarget {
4236
43- /**
44- * A Boolean that indicates whether the request(s) the signal is
45- * communicating with is/are aborted (true) or not (false).
46- *
47- * MDN
48- */
37+ /** A Boolean that indicates whether the request(s) the signal is communicating with is/are aborted (true) or not
38+ * (false).
39+ *
40+ * MDN
41+ */
4942 def aborted : Boolean = js.native
5043
51- /**
52- * Invoked when an abort event fires, i.e. when the DOM request(s) the signal
53- * is communicating with is/are aborted.
54- *
55- * MDN
56- */
44+ /** Invoked when an abort event fires, i.e. when the DOM request(s) the signal is communicating with is/are aborted.
45+ *
46+ * MDN
47+ */
5748 var onabort : js.Function0 [Any ] = js.native
5849}
0 commit comments