Hi,
I have an external JS library I want to use and I can call methods on
objects from the external library successful, but how do I set fields of on
external library?
Do I need to put this in an externs.js file? and if yes, how exactly?
If I do this:
(let [msg (js/Messaging.Message. "hello world") ]
(js/console.log msg)
(.-destinationName msg "test-topic")
I get this error:
Compiling "resources/public/js/cljs.js" failed:
java.lang.Error: Unknown dot form of (. msg -destinationName
("test-topic")) with classification [:cljs.analyzer/expr
:cljs.analyzer/property :cljs.analyzer/expr]
And I can see msg in the console with its various fields.
TIA,
Thomas
--
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