/
BudgetState.cljs
54 lines (37 loc) · 1.44 KB
/
BudgetState.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
(ns web.budget.BudgetState
"The BudgetState interface of the the Web Budget API provides
amount of the user agent's processing budget at a specific point
time."
(:refer-clojure :exclude [time]))
(defn budget-at
"Property.
The budgetAt read-only property of the `web.budget.BudgetState`
returns the anticipated processing budget at the specified time.
`var budget = BudgetState.budgetAt`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BudgetState/budgetAt`"
[this]
(-> this (.budgetAt)))
(defn set-budget-at!
"Property.
The budgetAt read-only property of the `web.budget.BudgetState`
returns the anticipated processing budget at the specified time.
`var budget = BudgetState.budgetAt`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BudgetState/budgetAt`"
[this val]
(aset this "budgetAt" val))
(defn time
"Property.
The time read-only property of the `web.budget.BudgetState` interface
a `timestamp` at which the budgetAt value is valid.
`var time = BudgetState.time`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BudgetState/time`"
[this]
(-> this (.time)))
(defn set-time!
"Property.
The time read-only property of the `web.budget.BudgetState` interface
a `timestamp` at which the budgetAt value is valid.
`var time = BudgetState.time`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/BudgetState/time`"
[this val]
(aset this "time" val))