   (.removeAttribute elem attr-name))
 
 (defn- set-style-prop! [elem prop-name prop-value]
-  (aset (.-style elem)
-        prop-name
-        (if (.-substring prop-value)
-          prop-value
-          (.toString prop-value))))
+  ;(println "set-style-prop!" elem prop-name prop-value)
+  (if prop-value
+    (aset (.-style elem)
+          prop-name
+          (if (.-substring prop-value)
+            prop-value
+            (.toString prop-value)))
+    (js-delete (.-style elem) prop-name)))
 
 (defn- remove-style-prop! [elem prop-name]
   (js-delete (.-style elem) prop-name))


(defn- bind-style! [element styles node-state]
  (doseq [[p v] styles]
    (bind-style-prop! element (name p) v node-state)))

(defn- get-attr-setter [element attr-name]
  (cond


(defn- rebind-style! [element styles node-state]
  (doseq [[p v] styles]
    (rebind-style-prop! element p v node-state)))

(defn- rebind-event! [element event-name handler node-state]
  (unbind-attr!* node-state "event" event-name)
