Thank you Frank!!! That did the trick (DOH) Thomas
On Thursday, November 15, 2012 4:40:53 PM UTC, FrankS wrote: > > Try: > > (set! (.-destinationName msg) "test-topic") > > http://himera.herokuapp.com/index.html > > -FS. > > > > On Nov 15, 2012, at 11:26 AM, Thomas <th.van...@gmail.com <javascript:>> > wrote: > > > 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 clo...@googlegroups.com<javascript:> > > Note that posts from new members are moderated - please be patient with > your first post. > > To unsubscribe from this group, send email to > > clojure+u...@googlegroups.com <javascript:> > > 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