[ClojureScript] Re: Script tags in Html for different environments

2014-07-29 Thread Ivan L
This is the sweet spot for lein profiles. cljs-start has a good example of it. The nice thing about using profiles is that you can reuse as much as you want in your dev profile code (which will probably just be a few simple items like handlers and template page or two) and then your prod

Re: [ClojureScript] om cursors and protocols

2014-07-29 Thread tal giat
On Tuesday, July 29, 2014 10:00:47 AM UTC-4, David Della Costa wrote: Hi Tal, I'm not positive this will fully answer your question, but here is a very simple example of how to extend MapCursor and call the extended type inside the render phase of a component.

Re: [ClojureScript] Keyword Hashing

2014-07-29 Thread Thomas Heller
Yes, I'm only testing Safari on iOS. Which looking at my logs seems to be the only one affected. Only Mobile Safari User Agents were sending maps with duplicate keys. No luck producing a more compact example though. -- Note that posts from new members are moderated - please be patient with

Re: [ClojureScript] Re: Script tags in Html for different environments

2014-07-29 Thread Udayakumar Rayala
Thanks everyone for the replies. It is really useful to hear your thoughts. I am summarizing the options and my thoughts around them: - https://github.com/thheller/shadow-build I havent looked into this. I will check and see if it solves my use case. - Enlive to override the index.html in

Re: [ClojureScript] om cursors and protocols

2014-07-29 Thread Moritz Ulrich
Hi, My preferred solution for this issue is calling `om/value' on the cursor before passing it to non-ui parts of the application. You can also move that call into the functions that get called itself, as it's equal to the identitty-functions for non-cursors. The other (more hacky) solution is

Re: [ClojureScript] Keyword Hashing

2014-07-29 Thread Thomas Heller
Created a patch to address that :emit-constants issue. http://dev.clojure.org/jira/browse/CLJS-829 Can't say wether its related to the issue at hand but less duplicate code is always good. -- Note that posts from new members are moderated - please be patient with your first post. --- You

Re: [ClojureScript] Keyword Hashing

2014-07-29 Thread David Nolen
Applied to master thanks. David On Tue, Jul 29, 2014 at 2:29 PM, Thomas Heller th.hel...@gmail.com wrote: Created a patch to address that :emit-constants issue. http://dev.clojure.org/jira/browse/CLJS-829 Can't say wether its related to the issue at hand but less duplicate code is always

[ClojureScript] [ANN] Bootstrap-CLJS, a ClojureScript wrapper for React Bootstrap

2014-07-29 Thread Olli Piepponen
Hi, Here's the repo: https://github.com/luxbock/bootstrap-cljs This is my first and modest OS project. I'm a bit fan of om-tools [1], and I wanted to use React Bootstrap [2] with the same convenient syntax, so I created this wrapper. Examples with Devcards and a Weasel browser REPL are

Re: [ClojureScript] Keyword Hashing

2014-07-29 Thread David Nolen
So you or do not have a minimal case for Mobile Safari that I can test with? Thanks, David On Tue, Jul 29, 2014 at 4:16 PM, Thomas Heller th.hel...@gmail.com wrote: Thanks. I give up. I have no more ideas what to test, whats even more annoying is that when I attach the remote debugger

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2277

2014-07-29 Thread Thomas Heller
Just tried :repositories {sonatype-oss-public {:url https://oss.sonatype.org/content/groups/public/; :snapshots false} sonatype-1311 {:url http://oss.sonatype.org/content/repositories//orgclojure-1311} sonatype-1312

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-2277

2014-07-29 Thread David Nolen
Thanks! On Tue, Jul 29, 2014 at 4:48 PM, Thomas Heller th.hel...@gmail.com wrote: Just tried :repositories {sonatype-oss-public {:url https://oss.sonatype.org/content/groups/public/; :snapshots false} sonatype-1311 {:url

[ClojureScript] Problems with :advanced compilation

2014-07-29 Thread Daniel Kersten
Hi, I have a large-ish ClojureScript/Om application and I'm unable to run it when compiled with :optimization :advanced. :none, :whitespace and :simple all work perfectly, but :advanced gives me an undefined is not a fucntion on the RN from the following snippet of code: return u.owner.RN( ... )

[ClojureScript] Re: Problems with :advanced compilation

2014-07-29 Thread Daniel Kersten
I'm assuming that I need to determine what the RN refers to when not minified and then write a proper extern file for it.. On 30 July 2014 00:15, Daniel Kersten dkers...@gmail.com wrote: Hi, I have a large-ish ClojureScript/Om application and I'm unable to run it when compiled with

Re: [ClojureScript] Re: Problems with :advanced compilation

2014-07-29 Thread David Nolen
Using JS libs as their own externs is not guaranteed to work. You just need to supply extern files for all calls that involve JS code that Closure will not see. David On Tue, Jul 29, 2014 at 7:20 PM, Daniel Kersten dkers...@gmail.com wrote: I'm assuming that I need to determine what the RN

Re: [ClojureScript] [ANN] Bootstrap-CLJS, a ClojureScript wrapper for React Bootstrap

2014-07-29 Thread Leonardo Borges
Is the site supposed to work on mobile? Tried in Chrome on my HTC One and the page loaded but the collapsed menu doesn't work. Cheers, Leonardo Borges @leonardo_borges www.leonardoborges.com On Wed, Jul 30, 2014 at 8:41 AM, Daniel Kersten dkers...@gmail.com wrote: Cool! Will be looking into

Re: [ClojureScript] kioo dynamic selectors

2014-07-29 Thread Creighton Kirkendall
Mark, Yes, kioo now supports a transform called lifecycle that allows you attache react lifecycle methods to any node. I am putting together a sample app to demonstrate it over the next few days. In the mean time below is a working example of controlling focus and changing input sate with