I have the following in a cljs file
(defn load-coords []
(let [svg (.getSVGDocument (. js/document (getElementById "game-board")))
s (ef/from svg
:coords "#circles circle"
(fn [circle]
{:x (.-baseVal.value (.-cx circle))
:y (.-baseVal.value (.-cy circle))
}))]
.....
When I try to compile the project using :optimisations :advanced
I get the following error message when running the project js in the browser
TypeError: document.getElementById(...).eh is not a function
Seems like .getSVGDocument
might be getting "mangled" in the compiler is there any way to "exclude" things like this from happening other than externs of :optimisation :simple?
I'm not even sure how to include it in the externs as it is part of the js element specifications...like how do I write that in the externs?