Fork me on GitHub
#hoplon
<
2017-10-16
>
thedavidmeister06:10:15

@flyboarder i noticed that in your spec you have boolean? for do! values, but i think this would mean you cannot trigger an event more than once

thedavidmeister06:10:55

e.g. :focus would have to cycle between true/false and trigger an intermediate focusout

thedavidmeister06:10:08

whereas i currently generate a new random value when i want to trigger a focus on certain elements, there's not necessarily a falsey state in between two focuses, it depends on what the user is doing

flyboarder06:10:07

@thedavidmeister not sure, spec is just to test the value, any time the formula changes value it should fire

flyboarder06:10:23

Perhaps we need event tests

thedavidmeister06:10:31

yeah i think do! does the right thing

thedavidmeister06:10:42

i'm suspicious of the spec being too strict in this case

thedavidmeister06:10:52

don't have any tests confirming my suspicions though

thedavidmeister08:10:51

@flyboarder just taking class for a test spin with some new elements

thedavidmeister08:10:54

(def item-wrap (partial h/div :class/item-wrap "item-wrap"))
(def item-core (partial h/div :class/item-core "item-core"))
(def item-details (partial h/div :class/item-details "item-details"))

thedavidmeister08:10:04

:thumbsup: no more boilerplate

flyboarder14:10:57

@thedavidmeister yay!!! I think this will simplify my ui libraries