alanszp / new-interval

An object-oriented solution to many of the setInterval problems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

new-interval Build Status

A real Interval object

Getting Started

Install the module with: npm install new-interval

// Only for Node.
var Interval = require('new-interval').Interval;

var interval = new Interval(3000, function(){
	doSomethingAwsome();
});
interval.start();
interval.clear();

// or the same can be acomplished by
var interval = Interval.set(3000, function(){
	doSomethingAwsome();
});

interval.clear();

Remember that Lo-Dash or Underscore are required to load before using Intervals!

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Copyright (c) 2014 Alan Szpigiel
Licensed under the MIT license.

About

An object-oriented solution to many of the setInterval problems


Languages

Language:CoffeeScript 63.0%Language:JavaScript 37.0%