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