clearInterval()
Availability:
SmartFoxServer PRO 1.2.1
Usage:
clearInterval(intervalObj)
Description:
Stops an interval that is running.
IMPORTANT:
Never forget to
call clearInterval() when you don't need your intervals any more.
It is usually a good habit to clear all intervals in the destroy() method
of your Extension. The method is called each time an extension is being removed.
Leaving uncleared intervals running could lead to unexpected server
behaviours and performance problems.
Parameters:
intervalObj | - a reference to a previously instantiated setInterval object |
Returns:
nothing
Example:
// This method is invoked by SmartFoxServer when the extension is being destroyed. function destroy() { clearInterval(myInterval) }
See also: