Skip to content

Instantly share code, notes, and snippets.

@fearphage
Created September 29, 2010 14:36
Show Gist options
  • Select an option

  • Save fearphage/602852 to your computer and use it in GitHub Desktop.

Select an option

Save fearphage/602852 to your computer and use it in GitHub Desktop.
/*
* 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