Okay so I think I was unnecessarily complicating things. I don't need to invoke 
js functions dynamically anymore.

Regards,
Kashyap

On Monday, February 24, 2014 4:24:36 PM UTC+5:30, Alexander Solovyov wrote:
> ((aget window "f") ps) - but then depends where those functions are defined, 
> if you're trying to get them from a closure I don't have any immediate ideas, 
> but that would smell bad to me. You could put them in a single namespace 
> (some object), and then use 'aget' to retrieve them.
> 
> 
> 
> 
> 
> On Mon, Feb 24, 2014 at 10:34 AM, Kashyap CK <[email protected]> wrote:
> 
> 
> Hi,
> 
> 
> 
> Is there a way to invoke JS functions, the names of which are generated 
> dynamically. For example -
> 
> 
> 
> (def my-invoke [f & ps]
> 
>   (let [ fname (str "js/" f)]
> 
>       ((symbol fname) ps)))
> 
> 
> 
> How can I make the above work?
> 
> 
> 
> Regards,
> 
> Kashyap
> 
> 
> 
> --
> 
> Note that posts from new members are moderated - please be patient with your 
> first post.
> 
> ---
> 
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> 
> To post to this group, send email to [email protected].
> 
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to