This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-25
Channels
- # aleph (6)
- # beginners (6)
- # boot (94)
- # cider (34)
- # cljs-dev (36)
- # cljsrn (12)
- # clojure (124)
- # clojure-dev (41)
- # clojure-dusseldorf (6)
- # clojure-italy (3)
- # clojure-norway (1)
- # clojure-russia (161)
- # clojure-sg (7)
- # clojure-spec (71)
- # clojure-uk (95)
- # clojurescript (38)
- # core-async (16)
- # cursive (14)
- # data-science (1)
- # datascript (12)
- # datomic (15)
- # emacs (22)
- # funcool (2)
- # hoplon (15)
- # jobs-rus (2)
- # juxt (9)
- # liberator (7)
- # lumo (1)
- # off-topic (136)
- # onyx (24)
- # pedestal (39)
- # perun (2)
- # planck (20)
- # re-frame (23)
- # spacemacs (31)
- # unrepl (5)
- # untangled (1)
- # vim (1)
- # yada (29)
Hello. I'd like help to understand why I cannot require goog.style
, while requiring goog.dom
works perfectly fine.
cljs.user=> (require '[goog.style :as style])
cljs.user=> style/setHeight
TypeError: Cannot read property 'setHeight' of undefined
So here's a clojure.zip
question - I don't have code handy to snippet right now but maybe someone just knows What I Did Wrong:
I have a use case where I have a small XML doc and I need to edit one node by filtering its children. I use zip and clojure.data.zip.xml
's xml1->
to position a zipper at the parent, zip/edit
to edit. This all works great. Here's the weird bit: I want to return the edited doc so I want to get back up to the root, right?
(-> edited zip/up zip/up zip/up)
gives me the root of the edited doc; (zip/root edited)
yields nil
This is an unexpected and confusing result, and having come so far in my understanding of what a zipper is and does, now I positively itch to figure out this new mystery. Does it sound familiar to anyone?