Browse Source

output result in an element, not on the console.

Lucas Stadler 12 years ago
parent
commit
4b32c2a8f5
1 changed files with 3 additions and 3 deletions
  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"))