The on_success function is not the outer wrapper function but the inner returned function. The outer function is immediately-invoked, not assigned to on_success.
The reason you see so many function wrappers in the generated js is that js provides no other way of introducing a new scope. Advanced compilation will get rid of most of these wrappers. -- 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.
