I understand that you can call js-methods and get properties thru:
(.a-method some-js-object param)
and
(.-a-prop some-js-object)
respectively, but how do you invoke either when you have the method/property as
a string?
The following doesn't seem to work:
(let [m "a-method"
dot-m (symbol (str "." m)]
(dot-m some-js-object))
or
(let [m "a-prop"
dot--m (symbol (str ".-" m)]
(dot--m some-js-object))
And I cannot find any simple function interface for this.
I must be overlooking something - pleaseā¦
Thanks, 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