Re: jquery/$ in cljs

2014-03-13 Thread Herwig Hochleitner
FWIW, here is some helper code, to conveniently call jquery and other object-method style libraries under advanced compilation without needing externs or wrap the possible methods beforehand. Macros can be called with plain symbols. https://github.com/webnf/webnf/blob/master/cljs/src/webnf/util.cl

Re: jquery/$ in cljs

2014-03-12 Thread t x
@Timothy, James: Everything works now. Thanks! On Wed, Mar 12, 2014 at 10:38 AM, James Reeves wrote: > Take a look at jayq: https://github.com/ibdknox/jayq > > - James > > > On 12 March 2014 17:14, t x wrote: >> >> Hi, >> >> Consider >> https://github.com/extend/bullet/blob/master/examples/clo

Re: jquery/$ in cljs

2014-03-12 Thread James Reeves
Take a look at jayq: https://github.com/ibdknox/jayq - James On 12 March 2014 17:14, t x wrote: > Hi, > > Consider > https://github.com/extend/bullet/blob/master/examples/clock/src/toppage_handler.erl#L50-L57 > > I want to know how to express "$.bullet" in cljs (when compiled with > optimi

Re: jquery/$ in cljs

2014-03-12 Thread Timothy Baldridge
I think this should work: (.bullet js/$ arg1 arg2) Although this might not work with advanced compilation. In that case you may need to provide extra info to the CLJS compiler to keep .bullet from getting renamed. Timothy On Wed, Mar 12, 2014 at 11:14 AM, t x wrote: > Hi, > > Consider > ht

jquery/$ in cljs

2014-03-12 Thread t x
Hi, Consider https://github.com/extend/bullet/blob/master/examples/clock/src/toppage_handler.erl#L50-L57 I want to know how to express "$.bullet" in cljs (when compiled with optimiztaions: advanced). I know how to use things like (js/console.log ... ) (js/MathJax ... ) However, w