That did the trick David, thanks for pointing out (with hindsight) the
obvious to me.
Thomas
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated
(let [opts (js/Object.)]
(set! (.-onSuccess opts) (fn [] (js/console.log "Successful Connect"))
(set! (.-onFailure opts) (fn [] (js/console.log "failure Connect"))
(.connect client opts))
Is what you want. You weren't setting those properties as your were in JS.
Honestly I'd probably write i
At the moment I have this:
(let [ client (js/Client. )
connectOptions (new js/Object) ]
(.onSuccess connectOptions ) (fn [] (js/console.log "Successful
Connect"))
(.onFailure connectOptions ) (fn [] (js/console.log "failure
Connect")))
If you need any more info please le
Hi,
I am trying to use an existing JS library from CLJS and in JS one needs to
define some call back functions in the following way. Assuming you have
written some functions "foo" and "bar" and you have created a client called
"client", you can do:
var options = new Object();
options.on
> - On page 2 of the Closure book, there is a workflow figure on using
> the Closure tools, how would ClojureScript change this workflow? It
> would be great to post such a modified diagram to the closure wiki.
Some quick notes on this:
1) calcdeps.py and the compiler are taken care of for you by
On Jul 25, 7:51 am, cljneo wrote:
> Hi,
> I have started reading about ClojureScript and Closure and had some
> questions which I am sure will eventually be answered as I move along.
> But I am too eager to know now so I thought of asking instead of
> waiting.
> - On page 2 of the Closure book,
Hi,
I have started reading about ClojureScript and Closure and had some
questions which I am sure will eventually be answered as I move along.
But I am too eager to know now so I thought of asking instead of
waiting.
- On page 2 of the Closure book, there is a workflow figure on using
the Closure t