I'm still finding my feet with ClojureScript, so please forgive any stupid mistakes. I've just hit an oddity when using set! with ..
I have a page with a very simple SVG on it:
<svg width="500" height="100">
<circle id="circle" cx="20" cy="20" r="10" style="stroke: none; fill: #ff0000;"/>
And a very simple little piece of ClojureScript that animates it:
(let [circle (dom/getElement "circle")]
(set! (.-value (.-baseVal (.-cx circle))) x)
This all works fine. If, however, I change the set! to:
(set! (.. circle -cx -baseVal -value) x)
I get the error:
Wrong number of args (3) passed to: core$-DOT
But the same structure works fine outside of the go-loop. So this, for example, compiles and runs exactly as I'd expect:
(set! (.. (dom/getElement "circle") -cx -baseVal -value) 200)
I'd be very grateful for any pointers as to what's up.
Thanks,