Too easy ;-) Thanks, FrankS.
On Nov 6, 2012, at 2:38 PM, David Nolen <[email protected]> wrote: > You could do: (.call f context ...) > > > > > On Tue, Nov 6, 2012 at 5:33 PM, Frank Siebenlist <[email protected]> > wrote: > In Javascript you seem to be able to set the context for "this" to any > fn-object by specifying your desired context's "this" in the call/apply call. > > (never knew about this option - feels like an aweful hack to define > invocation-scope but some libraries use it… see > http://www.slideshare.net/moduscreate/javascript-classes-and-scoping for a > good explanation). > > The CLJS compiler seems to fill-in the "this" with a nil for f.call(null,…) > invocations. > > Q is how do you specify this context-this in CLJS as the context/scope for > the invocation? > > -FrankS. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
