[ClojureScript] Password field issue inside a form in firefox

2014-11-09 Thread Devasia Joseph
I am having a weird issue rendering a password field inside a form which happens only in firefox This code is given below: (ns app.user (:require [om.core :as om :include-macros true] [om.dom :as dom :include-macros true] [goog.dom :as gdom])) (def password-data (atom

[ClojureScript] Re: Improving ClojureScript eval on Light Table

2014-11-09 Thread Yehonathan Sharvit
On Friday, 7 November 2014 15:58:43 UTC+2, Rory Douglas wrote: > I'd love it if external browser connection could automatically update the > websocket port in my index.html so I don't have to. Or perhaps manage the > port lifecycle and assign a stable port per project. > > I personally really l

Re: [ClojureScript] Re: Improving ClojureScript eval on Light Table

2014-11-09 Thread Rory Douglas
-What do you mean by CLJS debugging via Chrome DevTools ? You can use the Source tab to set breakpoints on the CLJS files (works thanks to the source maps), and step through your code. A similar tool for Clojure itself would be awesome :-) -- Note that posts from new members are moderated -

Re: [ClojureScript] Re: Improving ClojureScript eval on Light Table

2014-11-09 Thread Aleš Roubíček
On Sunday, November 9, 2014 3:21:19 PM UTC+1, Rory Douglas wrote: > -What do you mean by CLJS debugging via Chrome DevTools ? > > > You can use the Source tab to set breakpoints on the CLJS files (works thanks > to the source maps), and step through your code. A similar tool for Clojure > its

[ClojureScript] integrating DataScript and Om with derive?

2014-11-09 Thread stephanos
Hey there, ever since I have read Mike Haney's entry about his (Reagent based) application's architecture [1] I'm intrigued by the idea of combining DataScript centrality/simplicity with the modularity/isolation of Om components & cursors. But my current minimal understanding of the ClojureScr

[ClojureScript] Re: Password field issue inside a form in firefox

2014-11-09 Thread Thomas Heller
My guess would be autocomplete, stored in your browser. You can try (dom/input #js {:type "password" :id "test-password" :autocomplete "off"}). HTH, /thomas -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you a

[ClojureScript] Cannot call method 'call' of undefined

2014-11-09 Thread Glen Mailer
Hi Everyone, I'm new to ClojureScript, but I've been doing Clojure for a while, and this was something that's been catching me out a lot. In Clojure, attempts to use an undefined var result in a compiler error, whereas in CLJS they are left to fail at runtime. Presumably this is to play nicely

Re: [ClojureScript] Cannot call method 'call' of undefined

2014-11-09 Thread Daniel Kersten
I've found this troublesome too when starting out. The compiler does catch the obvious cases but there's still many that slip through. I found that I'm more careful now and overall don't find it too troublesome anymore. I guess you just get used to it. It would be nice if the compiler could warn yo

Re: [ClojureScript] Cannot call method 'call' of undefined

2014-11-09 Thread David Nolen
The compiler accurately warns in the case of non-higher order usage. For the other cases - the JS debugger is your friend. With source maps enabled and triggering JS debugger break points on uncaught exceptions, finding out the source of a bad function invocation shouldn't take you more than a few

[ClojureScript] alts!! (and alt!!) still make sense in CLJS when a :default is specified

2014-11-09 Thread Marcus Lewis
ClojureScript's core.async doesn't include blocking functions like alts!! and http://groups.google.com/group/clojurescript.

Re: [ClojureScript] Cannot call method 'call' of undefined

2014-11-09 Thread Daniel Kersten
This is true - with source maps most occurrences are easy to track down. On Sun, 9 Nov 2014 19:27 David Nolen wrote: > The compiler accurately warns in the case of non-higher order usage. > For the other cases - the JS debugger is your friend. With source maps > enabled and triggering JS debugge

Re: [ClojureScript] Re: Improving ClojureScript eval on Light Table

2014-11-09 Thread Rory Douglas
Not sure if I'm going something wrong, bit watches rarely work for me. As for debugging, there are times when it's just easier to click through your app to the point it breaks and see the function params than manually replicate the app state at that point via REPL. I also find identifying bugs in r

Re: [ClojureScript] Cannot call method 'call' of undefined

2014-11-09 Thread Asim Jalis
Hi Glenn, I ran into that problem several times. Initially I just gave up. In a second iteration I tried to debug the problem by reducing program to get a minimal repro of the issue. This proved to be a great learning experience. Here are the issues I discovered: 1. A big source of problems was t

Re: [ClojureScript] Cannot call method 'call' of undefined

2014-11-09 Thread David Nolen
These are excellent tips. On Sun, Nov 9, 2014 at 4:46 PM, Asim Jalis wrote: > Hi Glenn, > > I ran into that problem several times. Initially I just gave up. In a second > iteration I tried to debug the problem by reducing program to get a minimal > repro of the issue. This proved to be a great le

Re: [ClojureScript] Cannot call method 'call' of undefined

2014-11-09 Thread Glen Mailer
Cheers for the advice everyone. For some reason I had assumed warnings would appear in the js console, but of course warnings are emitted by the cljsbuild compiler! I've been using figwheel, so hadn't really paid much attention to the watch/compile terminal after starting it. I'll have to try