You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consttimer=newTimer("5:00");timer.onTime("2:00",showRunningLowOnTime);timer.onTime("0:30",showVeryRunningLowOnTime);```js## clearing `onTime` events.```jstimer.clearOnTime("2:00");// returns: true if a function existed and was removed, false otherwise
Changes
This effectively makes onTimeout a function for { onTime: "0:00" }, and should be refactored as such.
The text was updated successfully, but these errors were encountered:
functions fire on
onTimeout
andonInterval
, butOnTime
should be added to allow users to add arbitrary events whenever they please.As TimerOptions
As a method on a timer
Changes
This effectively makes
onTimeout
a function for{ onTime: "0:00" }
, and should be refactored as such.The text was updated successfully, but these errors were encountered: