fix dom-node? for nil case
This commit is contained in:
parent
cff3369c1b
commit
674fac7d0e
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
; (-get-virtual-dom [x] spec))
|
||||
|
||||
(defn- dom-node? [x]
|
||||
(> (.-nodeType x) 0))
|
||||
(and x (> (.-nodeType x) 0)))
|
||||
|
||||
(defn- get-attr [dom-node attr-name]
|
||||
(when (.-getAttribute dom-node)
|
||||
|
|
Loading…
Reference in a new issue