Fork me on GitHub
#clojurescript
<
2017-09-03
>
qqq00:09:14

@mfikes : thanks! I figured out what I was going wrong. I did (:import [http://goog.net EventType]), then I tried to do EventType/OPEN when instead, I should have been doing EventType.OPEN

blackxored00:09:49

in 2k17 any good resources for getting started with clojurescript? preferably in video form?

blackxored00:09:00

plz mention me since late

benny03:09:35

what's the best way to deal with environmental specific configuration with cljs?

benny03:09:02

like if i need to configure which endpoint to call in one environment to the next

au-phiware03:09:25

or are you talking about service discovery?

benny03:09:49

yeah i ended up finding https://github.com/weavejester/environ to help bring in environment variables in a more idioamtic way

benny03:09:21

env vars work well, thanks @au-phiware

souenzzo10:09:47

I'm using it for env settings https://www.w3schools.com/tags/att_global_data.asp I set the env on backend, then I generate the index.html with env data.

flyboarder18:09:43

I’m working with a javascript framework, their examples show building a class for the database adapter, im trying to do this in cljs, how can I define a constructor for something made with deftype ?

pwrflx18:09:51

hi! I'm using reagent to set the focus on an input component when it's mounted/updated. However, randomly it does not work. Any idea what could it be? Still the dom element is replaced after mounting?

blackxored19:09:16

thanks @vinai will check them up

ericnormand21:09:46

@flyboarder the constructor is made for you

ericnormand21:09:01

it sets all of the data elements in order

ericnormand21:09:35

so (deftype Foo [a b c])

ericnormand21:09:47

you can call the constructor like any other JavaScript constructor