i'm using lein-cljsbuild advanced example project[1], which seems to be the 
simplest way to get a working clojurescript dev env with browser repl.

from the browser-based cljs repl, `window` isn't defined, and third-party 
javascript code using window fails:

ClojureScript:cljs.user> (Ext.Msg.alert "hello" "world")                   
                                                                            
                              
"Error evaluating:" (Ext.Msg.alert "hello" "world") :as 
"Ext.Msg.alert.call(null,\"hello\",\"world\");\n"                           
                                                 
#<TypeError: Object [object Window] has no method 'show'>                   
                                                                            
                             
TypeError: Object [object Window] has no method 'show'                     
                                                                            
                              
    at 
http://localhost:3000/extjs-4.1.0/ext-all-debug-w-comments.js:154023:21

what is going on under the scenes, why doesn't `window` exist, and what i 
need to do to access `window`? how could i have figured out the answer on 
my own?

[1] https://github.com/dustingetz/cljs-bootstrap/tree/sencha

-- 
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

Reply via email to