I call om/root from a doseq and it's worked fine for me.

Do you see any errors in the js console? Does num-list get called?
On 3 Oct 2014 03:27, "gvim" <[email protected]> wrote:

> To create a static componenet I can attach this to a <select
> id="day1"></select> tag:
>
> (defn num-list [start end text]
>   (apply dom/option nil text
>          (map #(dom/option nil %) (range start end))))
>
> (om/root #(om/component (num-list 1 32 "Day")) nil
>          {:target (. js/document (getElementById "day1"))})
>
>
> ... but it appears I can't create a factory:
>
> (for [n [1 2]]
>   (om/root #(om/component (num-list 1 32 "Day")) nil
>                 {:target (. js/document (getElementById (str "day" n)))})
>
>
> Tried it with doall as well but no luck.
>
> gvim
>
> --
> 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