/
StorageEvent.cljs
63 lines (46 loc) · 1.33 KB
/
StorageEvent.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
(ns web.storage.StorageEvent
"A StorageEvent is sent to a window when a storage area it has
to is changed within the context of another document."
(:refer-clojure :exclude [key]))
(defn type-arg
"Method.
The name of the event."
[this & args]
(-> this .-typeArg (.apply this (clj->js args))))
(defn can-bubble
"Method.
A boolean indicating whether the event bubbles up through the
or not."
[this & args]
(-> this .-canBubble (.apply this (clj->js args))))
(defn cancelable
"Method.
A boolean indicating whether the event is cancelable."
[this & args]
(-> this .-cancelable (.apply this (clj->js args))))
(defn key
"Method.
The key whose value is changing as a result of this event."
[this & args]
(-> this .-key (.apply this (clj->js args))))
(defn old-value
"Method.
The key's old value."
[this & args]
(-> this .-oldValue (.apply this (clj->js args))))
(defn new-value
"Method.
The key's new value."
[this & args]
(-> this .-newValue (.apply this (clj->js args))))
(defn url
"Method.
The URL of the document initiating the change."
[this & args]
(-> this .-url (.apply this (clj->js args))))
(defn storage-area
"Method.
The DOM Storage object representing the storage area on which
event occurred."
[this & args]
(-> this .-storageArea (.apply this (clj->js args))))