Re: [ClojureScript] Generated javascript has an extra function wrapper

2014-09-07 Thread Alexander Solovyov
It does not really. This extra function wrapper is being called right in place if you'll look closely: var on_success = function(video, ___$2, active, completed, ___$1, map__14064, map__14064__$1, q, map__14059, map__14059__$1, app, todos) { return function(stream) {

[ClojureScript] [ANN] Quil 2.2.2 Release

2014-09-07 Thread Nikita Beloglazov
Happy to announce release of Quil 2.2.2. It is available on clojars: https://clojars.org/quil Here is the list of changes: - Processing.js is shipped in a jar to make it possible to include it using :preamble option to cljsbuild configuration. - Support available-fonts, load-pixels and p

[ClojureScript] clojurescript wrapping javascript function call twice.

2014-09-07 Thread Francis Avila
The on_success function is not the outer wrapper function but the inner returned function. The outer function is immediately-invoked, not assigned to on_success. The reason you see so many function wrappers in the generated js is that js provides no other way of introducing a new scope. Advance

[ClojureScript] Generated javascript has an extra function wrapper

2014-09-07 Thread Bobby Harris
I'm having a promblem using GetUserMedia from clojurescript. My clojurescript loks like: (let [video (.getElementById js/document "video") _ (js/alert video) success (fn [stream] (aset video "src" (.createObjectURL (.-URL js/window) stream))) error

[ClojureScript] clojurescript wrapping javascript function call twice.

2014-09-07 Thread Bobby Harris
I'm getting unexpected results in some generated javascript: My clojurescript looks like: (let [video (.getElementById js/document "video") _ (js/alert video) success (fn [stream] (aset video "src" (.createObjectURL (.-URL js/window) stream))) error

Re: [ClojureScript] Html structure in OM's app state

2014-09-07 Thread Joseph Fahey
yousho...@unfoldyourmind.com writes: > I am using om library and would like to store html structure in app state's > atom than generate dom/* elements in app-view on the fly. > > Here is one of attempts in implementing this functionality but is not working. > https://gist.github.com/unfoldyourmi

[ClojureScript] Html structure in OM's app state

2014-09-07 Thread youshould
I am using om library and would like to store html structure in app state's atom than generate dom/* elements in app-view on the fly. Here is one of attempts in implementing this functionality but is not working. https://gist.github.com/unfoldyourmind/41e287cfb14e68e39cb0. Why it does not work a