This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-24
Channels
@mheld: you could compare downloads of https://clojars.org/reagent vs ( https://clojars.org/om + https://clojars.org/org.omcljs/om )
I am very happy to announce Replumb 0.1.4
. Adds dir, apropos, find-doc together with around 300 assertions against ClojureScript core. We found a bug, which is good, as one of the objectives of this library was also to help in that, I will report it soon on JIRA, but first things first: https://github.com/ScalaConsultants/replumb/releases/tag/0.1.4
Hi all. Im running into a wierd problem when trying to decode JSON. In a figwheel repl I can do
(JSON/parse json-string)
but when I try to compile and run in a browser I get No such namespace: JSON, could not locate JSON.cljs
@underplank: try (.parse js/JSON "123")
ahh… turns out its a compiler warning rather than an error. Can you do
js/JSON/parse
@underplank if you prefer that order, use js/JSON.parse
@sander: ahh thanks. worked it out, thanks @borkdude as well!
Hi everyone! Noob question: if I'm using Stuart Sierra's component lib and I want to change the def'd var #'system to refer to something else, how can I do it in ClojureScript? ... in Clojure we'd use alter-var-root ... but ClojureScript thinks alter-var-root is an undeclared var...
If you happen to get an Apple TV this holiday season, ClojureScript / Ambly support is available for tinkering: https://github.com/omcljs/ambly/wiki/tvOS-Support
(def my-canvas (.getElementById js/document "canvas"))
(def ct (.getContext my-canvas "2d"))
(defn fill-rect [ct]
;(.fillStyle ct "Red")
(.fillRect ct (30 30 50 60)))