sb.timerClearInterval

sb.timerClearInterval(id)

This function stops an existing timer from firing.

Parameters:
    id         The id representing the timer
Example:

var idval;
function cbFunc() {    
    print("CB FUNC HAS BEEN CALLED");
}

//Call cb_func every 5 seconds
function cbSetInterval() {    
    idval = sb.timerSetInterval(cbFunc, 2000);
}

function cb_clear_interval() {    
    sb.timerClearInterval(idval);
}
Was this article helpful?
0 out of 0 found this helpful