This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-14
Channels
- # aatree (1)
- # admin-announcements (1)
- # beginners (12)
- # boot (359)
- # cljs-dev (23)
- # cljsjs (2)
- # cljsrn (1)
- # clojure (53)
- # clojure-czech (5)
- # clojure-madison (1)
- # clojure-russia (15)
- # clojured (8)
- # clojurescript (16)
- # community-development (2)
- # core-async (6)
- # cursive (19)
- # datomic (31)
- # emacs (48)
- # euroclojure (3)
- # hoplon (29)
- # microservices (7)
- # mount (46)
- # off-topic (7)
- # om (11)
- # proton (74)
- # reagent (4)
- # spacemacs (3)
@flyboarder: can you give an example where it caused a problem?
i vaguely remember semantic-ui was actually trying to get rid of these situations...
in our codebase i often see solutions where the classes were just merged at a string level because of this issue, but we haven't hit it recently i think. eg: (div :class (cell= (str "ui " size " button")))
I can't seem to get amcharts working with hoplon. Starting with the hoplon template, if i simply add 4 script tags to the page like this:
(html
(head
;; (script :src "")
;; (script :src "")
;; (script :src "")
;; (script :src "")
(script :src "amcharts/amcharts.js")
(script :src "amcharts/serial.js")
(script :src "amcharts/themes/light.js")
(script :src "amcharts/amstock.js")
(link :href "app.css" :rel "stylesheet"))
(body
(h1 "Hello, Hoplon!")))
I'm getting an "AmCharts is not defined error in the js console, but I can access the AmCharts object at the js console. Any ideas what might be causing this?hmm the errors are
light.js:1 Uncaught ReferenceError: AmCharts is not defined(anonymous function) @ light.js:1
serial.js:1 Uncaught TypeError: Cannot read property 'Class' of undefined(anonymous function) @ serial.js:1(anonymous function) @ serial.js:4
amstock.js:1 Uncaught TypeError: Cannot read property 'Class' of undefined(anonymous function) @ amstock.js:1(anonymous function) @ amstock.js:5
but i can go to each of the js files the errors occur in, and copy paste them to the js console without errorsI'm on Windows (10) but having no other issues or errors running boot so I'm assuming this isn't the issue?
if i save the generated html and open the page I don't get these errors.... hmmm going to try prerendering
@onetom: Here is an example (div :class ["ui "middle" "aligned" "center" "aligned" "grid”])
with the current implementation, the second aligned class is removed
where is this middle aligned
documented, btw?
i was cmd-f-ing on the http://semantic-ui.com/collections/grid.html page but no word about middle
@onetom: yeah I couldnt find it in the docks either, it centers along the layout axis
yeah, i know, we also used it; im just surprised not seeing it in the docs, because it makes me wonder where have we learnt it from then?
It would seem the docs don't explain all possible grid format combinations, more reader exercises
@jjttjj: are you able to use (.getScript js/jQuery "script-name") wrapped in with-init! if so, it may be related to the timing of how hoplon blows away the dom and remakes it in it's image
@raywillig: so that does work when i point to the local files, doesn't really work correctly when pointing to external files. thanks
and even after the scripts successfully load I'm still getting an "Uncaught ReferenceError: AmCharts is not defined" when i do js/AmCharts in the same with-init! form