Add check-box? function

This commit is contained in:
oakes
2014-05-04 18:56:32 -04:00
parent 64739c2714
commit 073c7cda85

View File

@@ -187,6 +187,11 @@ based on the file at `path`.
[entity k & options]
`(u/call! ^Checkbox (u/get-obj ~entity :object) ~k ~@options))
(defn check-box?
"Returns true if `entity` is a `check-box`."
[entity]
(isa? (type (u/get-obj entity :object)) Checkbox))
; container
(defn container*