/
ev.cljs
72 lines (43 loc) · 1.6 KB
/
ev.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
(ns web.XMLHttpRequest.ev
"XMLHttpRequest Events."
(:refer-clojure :exclude [load]))
(def abort
"Event.
The abort event is fired when a request has been aborted, for
because the program called `XMLHttpRequest.abort()`.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort_event`"
"abort")
(def error
"Event.
The error event is fired when the request encountered an error.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/error_event`"
"error")
(def load
"Event.
The load event is fired when an `web.XMLHttpRequest` transaction
successfully.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/load_event`"
"load")
(def loadend
"Event.
The loadend event is fired when a request has completed, whether
(after `load`) or unsuccessfully (after `abort` or `error`).
See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/loadend_event`"
"loadend")
(def loadstart
"Event.
The loadstart event is fired when a request has started to load
See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/loadstart_event`"
"loadstart")
(def progress
"Event.
The progress event is fired periodically when a request receives
data.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/progress_event`"
"progress")
(def timeout
"Event.
The timeout event is fired when progression is terminated due
preset time expiring.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout_event`"
"timeout")