Re: ClojureScript can't call JavaScript functions relying on `this`

2011-08-29 Thread Kevin Lynagh
Chouser, Yes, that does it---I didn't even think about my use of (apply js/f args), thanks! Is there a way to use the interop form with variable-arity JavaScript functions without using `apply`? This issue came up with my ClojureScript wrapper for D3; I'm using this macro (defmacro shim [nam

Re: ClojureScript can't call JavaScript functions relying on `this`

2011-08-29 Thread Chouser
On Sun, Aug 28, 2011 at 9:22 PM, Kevin Lynagh wrote: > I am having trouble using ClojureScript to call JavaScript functions > that exploit prototype injection. > If I'm reading `defmethod :emit invoke` correctly, > >     > https://github.com/clojure/clojurescript/blob/master/src/clj/cljs/compiler.

ClojureScript can't call JavaScript functions relying on `this`

2011-08-28 Thread Kevin Lynagh
I am having trouble using ClojureScript to call JavaScript functions that exploit prototype injection. If I'm reading `defmethod :emit invoke` correctly, https://github.com/clojure/clojurescript/blob/master/src/clj/cljs/compiler.clj#L513 ClojureScript always seems to compile f(x) JavaScript