Created
September 29, 2010 14:36
-
-
Save fearphage/602852 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * from WebReflection | |
| * http://webreflection.blogspot.com/2007/06/simple-settimeout-setinterval-extra.html | |
| * | |
| */ | |
| (function (f) { | |
| global.setTimeout = f(global.setTimeout); | |
| global.setInterval = f(global.setInterval); | |
| })(function (f) { | |
| return function (c, t) { | |
| var a = [].slice.call(arguments, 2); | |
| return f(function () { | |
| c.apply(this, a) | |
| }, t) | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment