Fork me on GitHub
#hoplon
<
2015-08-29
>
micha15:08:25

those guys are awesome

micha15:08:33

i like their style

micha15:08:41

they have some crazy stuff there

micha15:08:02

i haven't seen this one yet

onetom17:08:27

oops, duplicate github notifications... there was a slack webhook on the hoplon repo itself too, but there is a hoplon github org level webhook for slack

micha17:08:59

i like the org level one, didn't know you can do that

onetom17:08:58

on bitbucket u cant

onetom17:08:37

micha: trying to adjust https://github.com/hoplon/demos/tree/hoplon6/castra-chat to use this new castra

onetom18:08:43

@micha: as i see this was removed from hoplon6:

287  (defn by-id [id] (.getElementById js/document (name id)))
  289: (defn val-id [id] (do! (by-id id) :value))
but the chat app is full of it... what should be the recommended replacement for it?

micha18:08:11

usually you want that when you have an event handler on an input element

micha18:08:18

instead you can do this

micha18:08:41

(input :change #(pr :the-new-value-is @%))

micha18:08:59

the @% is dereferencing the event object

micha18:08:12

extracting the target element and getting its value

micha18:08:25

we implemented IDeref on the jquery event type