jFactory > Reference > Traits > TraitInterval
TraitInterval
Registers intervals that will be automatically stopped and removed at Remove Phase.
Registry
myComponent.$.timeints
Injected Methods
$interval(registryId {string}, delay, handler [, ...args])
myComponent.$interval("myInterval", 1000, (arg1, arg2) => {}, "arg1", "arg2")
$intervalRemove(registryId {string})
Removes the interval registered with the key registryId
previously created by $interval()
.
$intervalRemoveAll(removePhase)
(Automatically called at Remove Phase)
Removes any timer previously created by $interval()
if their Remove Phase match the given removePhase
.