Re: More ClojureScript questions....

2012-11-21 Thread Thomas
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

Re: More ClojureScript questions....

2012-11-20 Thread David Nolen
(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

Re: More ClojureScript questions....

2012-11-20 Thread Thomas
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