Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doubleu23/dowhen.js
A little helper class that tests a given condition in an given Interval until max loops are reached or the condition is true
https://github.com/doubleu23/dowhen.js
Last synced: 29 days ago
JSON representation
A little helper class that tests a given condition in an given Interval until max loops are reached or the condition is true
- Host: GitHub
- URL: https://github.com/doubleu23/dowhen.js
- Owner: DoubleU23
- Created: 2015-07-03T15:22:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-03T15:23:29.000Z (over 9 years ago)
- Last Synced: 2024-10-05T14:44:14.811Z (about 1 month ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DoWhen
A little helper class that tests a given condition in an given Interval
until max loops are reached or the condition is true# Useage
```javascript
var testFn = function() {
// your callback code
console.log( '[testFn] called !' );
},
instance = new DoWhen( testestFn // callback
, 'window.x === 5' // condition
, 15 // max = 5 (optional)
, 500 // pause = 500 (optional)
);
```# toDo
* controlfunctions in the instance (stop, change, ...)# License
copyleft by Stefan Friedl (k) all rights reversed
[Attribution-NonCommercial-ShareAlike 4.0 International](http://creativecommons.org/licenses/by-nc-sa/4.0/)