clojure - clojurescript (js* "c=1") does not work -


this has been bugging me while. @ repl can type:

clojurescript:cljs.user> (js* "window") ==> #<[object domwindow]> clojurescript:cljs.user> (js* "window.a=1") ==> 1 clojurescript:cljs.user> (js* "window.a") ==> 1 

but if type:

clojurescript:cljs.user> (js* "c=1") ==> 1 clojurescript:cljs.user> (js* "c") =>       ; expect 1 returns nothing 

why case?

js* implementation detail, shouldn't using @ all.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -