Skip to content

Instantly share code, notes, and snippets.

View codeasaurus's full-sized avatar

Blaine Sanders codeasaurus

View GitHub Profile
@codeasaurus
codeasaurus / README.md
Last active December 30, 2015 00:57
Utility Wrapper for managing the unruly javascript interval timer

Synopsis

Anyone that's ever tried to wrangle the native javascript interval timer has thought, "Why does this have to be so ugly and unmanageable?" MorphInterval provides a simple but flexible solution to managing javascript interval timers.

Code Example

This example shows a simple interval that calls the doSomething() function once every 60 seconds

var thisObj = this;

this.refreshInterval = new window.MorphInterval(