Z.everyOff(...)

Z.everyOff(func: () => void): void;

Stops a function that had been previously scheduled with Z.every(...) from being called again.

Parameters

Parameter Type Description
func function The function passed to Z.every(...) that is to be no longer called.

Example

function myRepeatingFunction() {
    //a function being repeatedly called elsewhere.
}
//stop calling myRepeatingFunction
Z.everyOff(myRepeatingFunction);
zapcode branded_zapcode i