Преглед на файлове

output result in an element, not on the console.

Lucas Stadler преди 12 години
родител
ревизия
4b32c2a8f5
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      clj/clarity/cljs/clarity.cljs

+ 3 - 3
clj/clarity/cljs/clarity.cljs

@ -203,10 +203,10 @@
203 203
204 204
(defn typed-input [{:keys [type data]} owner]
205 205
  (reify
206
    om/IWillUpdate
207
    (will-update [_ p s] (prn (:data p) s))
208 206
    om/IRender
209 207
    (render [_]
210
      (om/build make-typed-input data {:opts {:type type}}))))
208
      (dom/div nil
209
        (om/build make-typed-input data {:opts {:type type}})
210
        (dom/pre nil (pr-str data))))))
211 211
212 212
(om/root app-state typed-input (.getElementById js/document "typed_input"))