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 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 175 All time: 273 This week: 16Up
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: 3 packages by
Country: United Kingdom United Kingdom
Innovation award
Innovation award
Nominee: 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:175
This week:0
All time:273
This week:16Up