This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-28
Channels
- # beginners (33)
- # boot (58)
- # cider (21)
- # cljs-dev (197)
- # cljsrn (112)
- # clojure (136)
- # clojure-belgium (5)
- # clojure-dev (57)
- # clojure-greece (1)
- # clojure-italy (3)
- # clojure-russia (6)
- # clojure-spec (148)
- # clojure-uk (54)
- # clojurescript (29)
- # cursive (24)
- # datomic (36)
- # devops (4)
- # emacs (11)
- # figwheel (1)
- # graphql (18)
- # hoplon (6)
- # leiningen (2)
- # luminus (4)
- # off-topic (7)
- # om (4)
- # onyx (27)
- # precept (1)
- # protorepl (12)
- # quil (1)
- # re-frame (28)
- # reagent (10)
- # ring (9)
- # robots (1)
- # rum (2)
- # slack-help (5)
- # spacemacs (16)
- # sql (16)
- # untangled (16)
- # vim (3)
- # yada (2)
@flyboarder i put a corresponding issue up against closure, we can see what they say
in the meantime i'm doing something like this myself
(defn val
[el]
{:pre [(el? el)]}
;
(if (.-type el)
(goog.dom.forms/getValue el)
(.-value el)))
(defn val!
[el v]
{:pre [(el? el)]}
;
(let [v (if (seq? v) (map str v) (str v))]
(if (.-type el)
(goog.dom.forms/setValue el v)
(set! (.-value el) (str v)))))
@flyboarder looks like this one might get fixed upstream 🙂
@thedavidmeister even better!
@flyboarder actually, looks like i have to BYO PR to get it fixed upstream 😛