It might sound like a scary concept but how do I define some CLJS data structure, function or protocol such that it is accessible from all namespaces buy without having to specify its namespace? For example, a reusable component may depend on a certain part of the app state atom and i don't want to hardwire the namespace of the app state atom in the component and i don't want to pass in any cursors or the atom itself to the component. In JS land, modules.export or having something on the window object allows that kind of global scoping since window is available in the browser from any scope. I could assign to window.someCLJSfunctionOrDataStructure from CLJS but I think it may get renamed during Closure's advanced compilation or does it?
I may not be thinking clearly about this... But i do need the ability to define something that is accessible from any namespace without having to specify its namespace or replace that whole model with the right way of doing it in CLJS. Sent from my iPhone -- 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.
