[ClojureScript] ClojureScript Browser REPL and Advanced Optimizations

2014-11-05 Thread Asim Jalis
I am able to get the ClojureScript browser REPL to work when I set :optimization :whitespace in project.clj. However, when I set :optimizations :advanced I get this error on the browser console: Uncaught TypeError: Cannot read property 'Jf' of undefined hello.js:6587 I have created a minimal re

[ClojureScript] Re: ClojureScript Browser REPL and Advanced Optimizations

2014-11-05 Thread Thomas Heller
In general the REPL is the development feature and advanced compilation is for production quality builds. I do not think it is possible (or even a good idea) to use a REPL with optimized builds as they do not allow for any kind of incremental updates. HTH, /thomas On Wednesday, November 5, 201

[ClojureScript] om - focused re-rendering

2014-11-05 Thread Colin Yates
Hi, Another question of idiomatic usage (will somebody *please* right a "JoyOfClojure" type book about om ;)). I have a hierarchy in my app-state (e.g. a hierarchy of locations). I also have app-state which stores the ids of the nodes that are selected {:reference {:locations {:id 1 :text "All