Too easy ;-)

Thanks, FrankS.



On Nov 6, 2012, at 2:38 PM, David Nolen <dnolen.li...@gmail.com> wrote:

> You could do: (.call f context ...)
> 
> 
> 
> 
> On Tue, Nov 6, 2012 at 5:33 PM, Frank Siebenlist <frank.siebenl...@gmail.com> 
> 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 clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 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 clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 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 clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to