We could do... but we have no way of getting a return value from the event, so we'd have no way of knowing if it was handled...
That may be enough though. Just load the alarm if in a clock, or if not, fire the event and buzz/flash the alarm icon
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
We could do... but we have no way of getting a return value from the event, so we'd have no way of knowing if it was handled...
That may be enough though. Just load the alarm if in a clock, or if not, fire the event and buzz/flash the alarm icon