Fork me on GitHub
#clojurescript
<
2017-09-30
>
dhirensr06:09:22

can anyone help me with how do i write jquery function in cljs .single-item is a class of a div slick is a library $(".single-item").slick({ dots: true });

dhirensr06:09:44

I found out that jayq is an wrapper for jquery

naomarik06:09:38

@dhirensr (.slick (js/$ ".single-item") #js{:dots true})

uwo08:09:35

I like to use spec assertions during dev to help us understand when we’ve passed malformed data, etc. Asserts are great because we can just :elide-asserts for prod builds. However, it would be great if instead of throwing an exception, I could instead just log a warning. Is there any obvious way to do this while still taking advantage of :elide-asserts?

metametadata13:09:05

@uwo I guess you'll have to write your own assert macro which e.g. looks at current :external-config to decide between logging and throwing an exception