Re: [ClojureScript] Om: Active channels on a removed component

2014-04-30 Thread Sean Corfield
On Apr 28, 2014, at 8:10 AM, David Nolen dnolen.li...@gmail.com wrote: I would create all go loops so that they listen on a kill channel. Write to the kill channel when the component unmounts. I see will-mount and did-mount but nothing for hooking into a component unmount. What am I missing?

Re: [ClojureScript] Om: Active channels on a removed component

2014-04-30 Thread Daniel Kersten
Since version 0.5.1 (I think), there is also an IWillUnmount with function (will-unmound [this]). It doesn't seem to be documented yet. https://github.com/swannodette/om/blob/master/src/om/core.cljs#L31 On 30 April 2014 18:17, Sean Corfield s...@corfield.org wrote: On Apr 28, 2014, at 8:10

Re: [ClojureScript] Om: Active channels on a removed component

2014-04-30 Thread Daniel Kersten
Do'h typo.. The function is, of course, *will-unmount* On 30 April 2014 18:38, Daniel Kersten dkers...@gmail.com wrote: Since version 0.5.1 (I think), there is also an IWillUnmount with function (will-unmound [this]). It doesn't seem to be documented yet.

Re: [ClojureScript] Om: Active channels on a removed component

2014-04-30 Thread David Nolen
Feel free to document! On Wed, Apr 30, 2014 at 1:38 PM, Daniel Kersten dkers...@gmail.com wrote: Since version 0.5.1 (I think), there is also an IWillUnmount with function (will-unmound [this]). It doesn't seem to be documented yet.

[ClojureScript] Re: browser repl with counterclockwise

2014-04-30 Thread Ivan L
Yes, and its not that difficult. See my answer here: https://groups.google.com/forum/#!topic/clojuredev-users/Uh87SezpTqU On Wednesday, April 30, 2014 3:30:26 PM UTC-4, Răzvan Rotaru wrote: Hi, Is it possible to have a browser based repl for clojurescript with counterclockwise? I tried to

[ClojureScript] where is the format function

2014-04-30 Thread Yehonathan Sharvit
It seems that “format” has been removed from cljs. It was added 2 years ago in https://github.com/clojure/clojurescript/commit/8f518760a3df8b351208e97bb70270856623bb0a Also, goog.string.format is not available any more. My question is: what is the best way to add leading zeros in cljs? -- Note