                (aset obj (name k) v)))
            obj)
          props]
-        
+
         (object? props)
         (let [obj (js-obj)]
           (doseq [k (map name reserved-ks)]


(defn- install-watch [c [getter iref :as selector]]
  (let [k (gensym "minreact-watch__")]
    (state! c assoc 
            :watch-key k
            :value (getter @iref))
    (add-watch iref k

       (remove-all! this)))))

(defn bind
  "EXPERIMENTAL.  The component will re-render when the irefs value
  applied to f (default: identity) and args has changed.  Returns
  current value of iref.  Requires minreact.core/irefs mixin."
  ([iref]
   (bind iref identity))
  ([iref f & args]
