Merge pull request #19 from ul/master

fix dom-node? for nil case
This commit is contained in:
Aaron Craelius 2014-11-23 12:35:15 -05:00
commit c4ef05347e

View file

@ -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)