On Sunday, March 2, 2014 4:42:04 PM UTC+5:30, Herwig Hochleitner wrote: > Depends. If `this` is not used in the call, you can just use clojurescript's > apply. `this` will be null then. You can use this, if myObject is more of a > namespace object. > > > If func depends on `this` being set to `myObject`, you need to use regular > javascript apply: > https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply > > > > > That would look like: (.apply (.-func js/myObject) js/myObject (array arg1 > arg2 ...)) > > > > 2014-03-02 3:33 GMT+01:00 <[email protected]>: > > > Hello Everyone! > > > > I want to use a javascript function myObject.func with apply > > > > (apply (clojure-equivalent-of-myObject.func) parameter-array) > > > > How can I do that ? > > > > regards > > > > -- > > 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.
Thanks Herwig! -- 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.
