Timeouts: Replace setTimeout and setInterval to manage timer

Recommend this page to a friend!
     
  Info   View files Files   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 182 All time: 287 This week: 14Up
Version License JavaScript version Categories
timeouts 0.1.1GNU General Publi...1.0Time and Date, Events
Description 

Author

This object can replace setTimeout and setInterval in order to manage the timer.

It provides replacement functions for the setTimeout and setInterval functions, so they return timer objects that allow to stop and resume the timer.

These same objects are passed to the callbacks to enable you to stop an interval based on certain conditions.

The timer object also provides other information like whether the timer is currently active and how many times the timer was run or stopped.

Picture of Dom Hastings
  Performance   Level  
Name: Dom Hastings <contact>
Classes: 4 packages by
Country: United Kingdom
Age: 41
All time rank: 993 in United Kingdom
Week rank: 6 Up1 in United Kingdom Up
Innovation award
Innovation award
Nominee: 3x

Winner: 2x

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file timeouts.js Class The updated functions
Accessible without login Plain text file timeouts.min.js Class A minified version of the file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:182
This week:0
All time:287
This week:14Up