mysterious-toddler-20573
09/03/2020, 9:53 PMmysterious-toddler-20573
09/03/2020, 10:28 PMa.b["c"].d
be null safe? That is, if any of those values is null should the entire expression evaluate to null? TypeScript and some other languages have the elvis operator ?.
but my sense is that, when you are on the front end and not doing business logic, you want non-side-effect dereference expressions to just return null if any of the elements are nullflaky-television-51328
09/03/2020, 10:53 PMmysterious-toddler-20573
09/03/2020, 11:04 PMflaky-television-51328
09/03/2020, 11:14 PMdocument.getElementById('grid').dispatchEvent(new Event('refresh'));
, but haven't figured out how to effectively use htmx yet.most-jelly-15242
09/03/2020, 11:16 PMhx-vars="coordinates:getCoordinates()"
Maybe you can use that to read the coordinates?most-jelly-15242
09/03/2020, 11:17 PMgetCoordinates
is a js function.flaky-television-51328
09/03/2020, 11:20 PMmost-jelly-15242
09/03/2020, 11:22 PMmysterious-toddler-20573
09/04/2020, 1:20 AMgorgeous-ghost-95789
09/04/2020, 1:25 AMhx-get
. Dismissing the modal might be a little more tricky, and might require you to use some custom Javascript to remove the modal content from the DOM when you're done. I'll try to make a little demo. It it works out well, I'll post it for you here.gorgeous-ghost-95789
09/04/2020, 2:04 AMgorgeous-ghost-95789
09/04/2020, 2:04 AMnarrow-chef-14221
09/04/2020, 7:02 AMbig-airline-13935
09/04/2020, 3:18 PMflaky-television-51328
09/04/2020, 4:00 PMbig-airline-13935
09/04/2020, 4:54 PMgorgeous-ghost-95789
09/04/2020, 9:02 PMgorgeous-ghost-95789
09/04/2020, 9:03 PMgorgeous-ghost-95789
09/04/2020, 9:05 PMforEach
function that I think has been available in most evergreen browsers for a while now. If I could guarantee that this (or others) are available in all target browsers, then we could potentially shave a few hundred more bytes off of the library šmysterious-toddler-20573
09/04/2020, 9:32 PMmysterious-toddler-20573
09/04/2020, 9:33 PMmysterious-toddler-20573
09/04/2020, 9:33 PMgorgeous-ghost-95789
09/04/2020, 10:07 PMgorgeous-ghost-95789
09/04/2020, 10:08 PMgorgeous-ghost-95789
09/04/2020, 10:09 PMmysterious-toddler-20573
09/04/2020, 11:33 PMancient-soccer-8576
09/05/2020, 3:57 PMmysterious-toddler-20573
09/05/2020, 5:12 PMmysterious-toddler-20573
09/06/2020, 12:49 AM