Icontem

Timeouts: Replace setTimeout and setInterval to manage timer

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2012-04-17 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 180 All time: 277 This week: 9Up
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.

  Performance   Level  
Name: Dom Hastings <contact>
Classes: 4 packages by
Country: United Kingdom United Kingdom
Age: 36
All time rank: 1003 in United Kingdom United Kingdom
Week rank: 10 Up1 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 3x

Winner: 2x

  Files folder image Files  
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:180
This week:0
All time:277
This week:9Up