Thanks for the example, I'll take a look.

On Wed, Jun 11, 2014 at 7:50 PM, Roger Gilliar
<[email protected]> wrote:
> I'tested  with "0.0-2173". I saw the same behaviour here: 
> http://clojurescript.net/
> This behaviour is gone with the latest release.
>
> After upgrading to the latest release and testing with the following prog, I 
> get nil for the first print and {:name ssh, :desc a ssh account, :users [1 2 
> 3]}  for the second print.
>
> (ns om-tut.core
>   (:require [om.core :as om :include-macros true]
>             [om.dom :as dom :include-macros true]))
>
> (enable-console-print!)
>
> (def data  {
>           :domain "a domain"
>           :services [{:name "ssh"
>                        :desc "a ssh account"
>                        :users [1 2 3]
>                        }]})
>
> (defn component [test owner]
>   (reify
>     om/IRender
>     (render [_]
>            (println (get-in data [:services nil]))
>             (println test) ;; expected nil here
>             (dom/div nil))))
>
> (om/root
>   (fn [app owner]
>     (om/build component (get-in app [:services nil])))
>   data
>   {:target (. js/document (getElementById "app"))})
>
> --
> Note that posts from new members are moderated - please be patient with your 
> first post.
> ---
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to