Fork me on GitHub
#clojurescript
<
2018-01-24
>
zentrope00:01:07

I've got a macro in foo.clj (and other stuff on foo.cljs) but the code that uses the macro can't find it.

zentrope00:01:01

Ah. The foo.cljs file needs to require-macros the foo.clj file, but users can work as in regular Clojure.

lgessler00:01:53

hi everyone--has anyone ever seen an instance of a clojurescript app that allowed people (either power users or other developers) to write "plugins" (or any kind of extension of the program, i guess is what i mean) in javascript? i anticipate that learning clojurescript is too difficult for my target end users, but JS would be in reach

mfikes00:01:59

You can now launch a ClojureScript REPL with this one-liner:

clj -Sdeps "{:deps {org.clojure/clojurescript {:mvn/version \"1.9.946\"}}}" -m cljs.repl.node

Pushkar08:01:44

How to compare (java.util.Date.) in clojure script

noisesmith18:01:03

for starters, clojurescript doesn’t have java.util.Date, but whether it’s js/Date or java.util.Date use compare - it can compare arbitrary types as long as they are comparable

Pushkar08:01:14

normal <= is not working

thedavidmeister08:01:29

why does advanced compilation screw up things like e.originalEvent.dataTransfer? this is part of HTML spec

thheller09:01:47

@thedavidmeister pretty sure the originalEvent isn’t part of the spec?

thedavidmeister09:01:03

oh that might be why heh

thedavidmeister09:01:44

yeah ok that might be coming in from jQuery

thedavidmeister09:01:54

but it's coming from cljsjs/jquery so i would have expected externs to be there in that case 😕

juhoteperi09:01:27

@thedavidmeister jquery extern seems to be generated automatically, it is possible that the generator doesn't pick up all the properties

thedavidmeister09:01:56

i'll just use oops for now

juhoteperi09:01:04

jquery 2 extern is written manually and includes originalEvent, looks like jquery 3 extern is missing lots of stuff

thedavidmeister09:01:53

yeah this is the 3.x version

thedavidmeister09:01:13

i'll stick an issue up at cljsjs