-
Notifications
You must be signed in to change notification settings - Fork 0
/
TypeInfo.cljs
40 lines (29 loc) · 869 Bytes
/
TypeInfo.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
(ns web.TypeInfo
"The obsolete TypeInfo interface was intended to be used to describe
DOM data type by keying its name to a namespace within the document's"
(:refer-clojure :exclude []))
(defn is-derived-from
"Method.
Returns a Boolean."
[this & args]
(-> this .-isDerivedFrom (.apply this (clj->js args))))
(defn type-name
"Property.
Returns a DOMString indicating the type's name."
[this]
(-> this (.-typeName)))
(defn set-type-name!
"Property.
Returns a DOMString indicating the type's name."
[this val]
(aset this "typeName" val))
(defn type-namespace
"Property.
Returns a DOMString indicating the type's namespace within the"
[this]
(-> this (.-typeNamespace)))
(defn set-type-namespace!
"Property.
Returns a DOMString indicating the type's namespace within the"
[this val]
(aset this "typeNamespace" val))