No particular reason. That example was used to track down a previous bug.
On Thu, Feb 6, 2014 at 5:35 AM, faenvie <[email protected]> wrote: > hi, > > this is from the om-example that is named "animation": > > om/IWillMount > (will-mount [_] > (js/setInterval > (fn [] (swap! app-state update-in [:count] inc)) > 16)) > > Why is swap! used here to change the app-state instead of transact! ? > > thanks & have successful day > > -- > 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.
