This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-11
Channels
- # admin-announcements (1)
- # aws (2)
- # beginners (32)
- # boot (147)
- # capetown (1)
- # cider (11)
- # cljs-dev (45)
- # cljsrn (57)
- # clojure (187)
- # clojure-russia (5)
- # clojure-spec (97)
- # clojure-uk (33)
- # clojurescript (33)
- # cloverage (17)
- # clr (4)
- # conf-proposals (93)
- # core-async (6)
- # cursive (9)
- # data-science (1)
- # datomic (24)
- # defnpodcast (1)
- # devcards (3)
- # emacs (3)
- # hoplon (95)
- # jobs (1)
- # off-topic (7)
- # om (97)
- # onyx (32)
- # overtone (1)
- # parinfer (4)
- # pedestal (1)
- # proton (1)
- # protorepl (13)
- # re-frame (4)
- # reagent (10)
- # specter (14)
- # untangled (40)
(attribute d {:tag :li :data-click "exportOrderGuide" :data-format "excel"} :id )
Can anyone show me how to do a java script hover on this element: #clj_webdriver.element.Element{:webelement #<Tag: <li>, Class: dropdown-submenu pull-left, Value: 0, Object: [[ChromeDriver: chrome on XP (8ff1a709570edb6244915d8fb4bd8c04)] -> xpath: //li[@class='dropdown-submenu pull-left']]>}
@martinklepsch The bluemix article you mentioned.
Hi everyone, I just started clojurescript-om tutorial (https://github.com/omcljs/om/wiki/Basic-Tutorial)
however, I have an error after lein new figwheel om-tut -- —om; cd om-tut; lein figwheel
Failed to compile "resources/public/js/compiled/om_tut.js" in 2.775 seconds.
---- Could not Analyze src/om_tut/core.cljs line:48 column:9 ----
No implementation of method: :emit-instruction of protocol: #'cljs.core.async.impl.ioc-macros/IEmittableInstruction found for class: cljs.core.async.impl.ioc_macros.Jmp
46 (will-mount [_]
47 (let [delete (om/get-state owner :delete)]
48 (go (loop [])
^--- No implementation of method: :emit-instruction of protocol: #'cljs.core.async.impl.ioc-macros/IEmittableInstruction found for class: cljs.core.async.impl.ioc_macros.Jmp
49 (let [contact (<! delete)]
50 (om/transact! data :contacts
51 (fn [xs] (vec (remove #(= contact %) xs))))
---- Analysis Error : Please see src/om_tut/core.cljs ——
(defn contacts-view [data owner]
(reify
om/IInitState
(init-state [_]
{:delete (chan)})
om/IWillMount
(will-mount [_]
(let [delete (om/get-state owner :delete)]
(go (loop [])
(let [contact (<! delete)]
(om/transact! data :contacts
(fn [xs] (vec (remove #(= contact %) xs))))
(recur)))))
om/IRenderState
(render-state [this {:keys [delete]}]
(dom/div nil
(dom/h2 nil "Contact list")
(apply dom/ul nil
(om/build-all contact-view (:contacts data)
{:init-state {:delete delete}}))))))
(go (loop [let [contact (<! delete)]])
(om/transact! data :contacts
(fn [xs] (vec (remove #(= contact %) xs))))
(recur))))
(go (loop []
(let [contact (<! delete)]
(om/transact! data :contacts
(fn [xs] (vec (remove #(= contact %) xs))))
(recur))))))
I’m working through Learning ClojureScript, the chapter im in is working on piggieback, but when I open my browser I get the error Error: goog.require could not find: piggieback_project.core
You are not alone 😁 that bites me from time to time
Funny I’ve never needed this, but is it possible to access javascript’s coerced equality ==
? This is the expression I’m trying to replicate e.target == document.documentElement
@uwo: you might be able to use .isEqualNode
on one or other of the elements for comparison
@dnolen: awesome, thanks! I found a better solution that doesn’t require coercive comparison
Does anyone have any experience with using css animations and Reagent? I've got an element reacting to a r/atom called transforming?
thusly: :transform (if @transforming? "scale(1,0)" "none")
, and a different element changing the value of transforming?
like this:
:on-change (fn [check-node] (let [flip-transforming? #(swap! transforming? not)
toggled-check (get-checked check-node)]
(flip-transforming?)
(reset! checkbox-state toggled-check)))
However, the reset!
also causes a visual change to the same element that subscribes to the value of transforming?
, and (I'm guessing) since flip-transforming?
and the reset!
occur right after one another and within the same "tick", the scale(1,0)
never occurs.
I've tested with the reset
commented out, and then, the animation appears correct.
How can I ensure that Reagent "waits" for css animations to finish?