It easier to help if you have a minimal reproducible example w/o any variables of surrounding context. My experience is that by taking the time to do this often uncovers the actual problem.
David On Wed, Jun 11, 2014 at 3:01 PM, Roger Gilliar <[email protected]> wrote: > 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. -- 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.
