Created
July 7, 2014 01:57
-
-
Save davidbalbert/33b4d44cd9da2dff1ae0 to your computer and use it in GitHub Desktop.
A curious case.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def hmm-state (atom {:value "Hmm..."})) | |
(defn hmm [state owner] | |
(reify | |
om/IRender | |
(render [_] | |
(om.dom/textarea #js {:value (:value state) | |
:onChange (fn [e] (.log js/console (.. e -target -value)))})))) | |
(om/root | |
hmm | |
hmm-state | |
{:target (. js/document (getElementById "app"))}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is with Om 0.6.4 and ClojureScript 2268.