Closed bobrippling closed 1 year ago
This prevents erroneous usage, e.g. a callback with "clock" or expecting undefined to be passed to a "clockupdown" callback.
undefined
It also "blesses" {mode: "clock" | "updown" | ...} with a subset of options which are handled by setUI (remove and back).
{mode: "clock" | "updown" | ...}
setUI
remove
back
Also make removeAllListeners()'s first argument optional.
removeAllListeners()
Great - thanks!
This prevents erroneous usage, e.g. a callback with "clock" or expecting
undefined
to be passed to a "clockupdown" callback.It also "blesses"
{mode: "clock" | "updown" | ...}
with a subset of options which are handled bysetUI
(remove
andback
).Also make
removeAllListeners()
's first argument optional.