Closure Compiler in advanced mode renames all your variables to shorter names, even those you would consider global. If you're trying to integrate with external library, you have two ways - one is to use strings as keys (aget), another is to write externs file.
On Sun, Feb 9, 2014 at 12:34 PM, Peter Taoussanis <[email protected]>wrote: > Hi all, am running ClojureScript 0.0-2156. > > With :advanced compilation on, I'm getting: > `js/window.foo_bar` => nil > `(.-foo_bar js/window)` => nil > `(aget js/window "foo_bar")` => The string I was expecting. > > Is this the correct behaviour? I was expecting the three expressions to > always return the same value, even with :advanced compilation on. > > Assuming this isn't a bug, what am I misunderstanding here? Would > appreciate a nudge in the right direction! > > Thanks a lot - cheers! :-) > > - Peter > > > -- > 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.
