Re: [ClojureScript] Rerender lists with different items on changed order in om

2014-06-26 Thread Dave Della Costa
I've added an example here: https://github.com/ddellacosta/om-examples/blob/master/same-data/src/core.cljs DD (2014/06/27 5:26), lightningflas...@gmail.com wrote: > I thought about posting the code, but I thing you got me right :) > That's exactly what I'm doing (or intend to do), besides I'm u

Re: [ClojureScript] Source Mapped Stack Traces

2014-06-26 Thread Dylan Butman
Thanks David that's exactly what I was looking for -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving

[ClojureScript] Question: Sente and WebSockets and access from external domains

2014-06-26 Thread Alan Shaw
I was hoping to use sente https://github.com/ptaoussanis/sente to provide access to a server endpoint from clients in arbitrary domains, but the sente client explicity prepends its own host to the user-provided endpoint: https://github.com/ptaoussanis/sente/blob/master/src/taoensso/sente.cljx#L764

Re: [ClojureScript] Rerender lists with different items on changed order in om

2014-06-26 Thread lightningflash82
I thought about posting the code, but I thing you got me right :) That's exactly what I'm doing (or intend to do), besides I'm using a multi function instead of item-comp and sep-comp, since there will be more different types in the future. Did you ever try code like yours? I also thought this s

[ClojureScript] cljs-http inexplicably stopped producing working code

2014-06-26 Thread Jonathon McKitrick
I hate asking questions like these, but I'm out of ideas, since I'm new to ClojureScript. I have a proof-of-concept working with cljs-http, then it suddenly stopped, and I'm not sure why. It's a dead simple call of cljs-http with a local URL. I'm seeing this is my javascript console on Firefox

[ClojureScript] Re: Errors using multiple Om cursors

2014-06-26 Thread jsims
On Thursday, June 26, 2014 1:11:26 PM UTC-5, Roger Gilliar wrote: > The first button does not receive a cursor but a map containing cursors. The > following works for button 1: > > (defn log-state > [state] > (prn @(:x state))) Thanks Roger, I misunderstood this https://github.com/swannodet

Re: [ClojureScript] Source Mapped Stack Traces

2014-06-26 Thread David Nolen
Aren't people already doing something like this with Mozilla's pure JS source map implementation? Seems to me you could just load the source map at runtime and sort it out. David On Thu, Jun 26, 2014 at 4:38 AM, Dylan Butman wrote: > I'm working on a fun interactive documentation system for an O

[ClojureScript] Re: Errors using multiple Om cursors

2014-06-26 Thread Roger Gilliar
The first button does not receive a cursor but a map containing cursors. The following works for button 1: (defn log-state [state] (prn @(:x state))) -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are s

Re: [ClojureScript] ClojureScript with om on IE8 and IE9

2014-06-26 Thread David Nolen
The Om tutorial should not be used as a minimal case. If people want to edit the tutorial so that it works for more browsers be my guest. I would like to see minimal cases that reflects something occurring in actual production code that demonstrates that there are serious issues with IE8. It's like

Re: [ClojureScript] Rerender lists with different items on changed order in om

2014-06-26 Thread Dave Della Costa
It would be helpful if you could give us your code to look at. That may make it easier to explain what you want to achieve as well. But if I understand what you want (which may not be the case), you could do something like this: Assuming a data structure like so, [{:type :item :pos 1} {:type :s

[ClojureScript] Rerender lists with different items on changed order in om

2014-06-26 Thread lightningflash82
Hi, I'm using swanodettes om for my web app. I have a list of items which will be draggable to sort the list. Based on a specific value of the items I compute some separators, which are then added to the list. The separators use a different template, because they show other information than the

[ClojureScript] Errors using multiple Om cursors

2014-06-26 Thread jsims
Hello, I'm loving Om but I'm encountering an issue using multiple cursors. Here's a boiled-down version that demos the issue I'm seeing. (defn log-state [state] (prn @state)) (defn button [state owner] (reify om/IRender (render [this] (dom/button #js {:onClick #(log-state

Re: [ClojureScript] ANN: cljs-time 0.1.5

2014-06-26 Thread Andrew Mcveigh
On Thursday, 26 June 2014 00:44:45 UTC+2, g vim wrote: > On 25/06/2014 20:05, Andrew Mcveigh wrote: > > > cljs-time, a ClojureScript rip-off of the clj-time library. > > > > > > Cljs-time is an attempt at replicating some of the functionality in > > clj-time. This is not a drop-in clojurescrip