I have the following code in my render-state function:
(defn component [users owner]
....
(dom/tfoot nil
(dom/td nil (dom/button #js {:type "button"
:disabled false
:className "btn btn-success btn-xs"
:onClick (fn [_] (println @users))}
(dom/span #js {:className
"glyphicon glyphicon-plus"})))))
(apply dom/tbody nil
(map-indexed (fn [index user]
(build-row index user users)) users))))) ;
render a table
Everything renders as expected. But users is suddenly nil in the onClick
handler ?
--
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.