Fork me on GitHub

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 });


I found out that jayq is an wrapper for jquery


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


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?


@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