@@ -3,56 +3,47 @@ package org.scalajs.dom
3
3
import scala .scalajs .js
4
4
import scala .scalajs .js .annotation .JSGlobal
5
5
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
+ */
12
11
@ js.native
13
12
@ JSGlobal
14
13
class AbortController () extends js.Object {
15
14
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
+ */
22
19
val signal : AbortSignal = js.native
23
20
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
+ */
30
26
def abort (): Unit = js.native
31
27
}
32
28
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
+ */
40
34
@ js.native
41
35
trait AbortSignal extends EventTarget {
42
36
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
+ */
49
42
def aborted : Boolean = js.native
50
43
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
+ */
57
48
var onabort : js.Function0 [Any ] = js.native
58
49
}
0 commit comments