cljs.core.async: Uncaught ReferenceError: state_machine__5113__auto____$1 is not defined

2013-07-16 Thread Mike Longworth
I'm trying to use cljs.core.async to convert async code to synchronous, I've hit a problem chaining some calls. I'm getting a runtime state machine problem, here is a test case for the issue: (defn td [id t] (let [c (chan)] (window/setTimeout (fn [] (go (! c (name id t) c

Re: cljs.core.async: Uncaught ReferenceError: state_machine__5113__auto____$1 is not defined

2013-07-16 Thread Mike Longworth
Thanks Tassilo, As you point out, if I move the nested function outside the go then the problem is fixed. This test case is only a simplification of the original code so I can't do this in my actual code however after much head scratching I now understand the purpose of take! and it

ClojureScript js-clj not converting

2013-02-25 Thread Mike Longworth
I've updated to 0.0-1586 build #22 from a much older release: 0.0-1450 I'm now geting a problem with (js-clj token) not converting the object I don't think the problem is with js-clj: (println (expose token true)) gives: access_token =