Skip to content

Instantly share code, notes, and snippets.

@mattsah
Created February 18, 2012 05:47
Show Gist options
  • Save mattsah/1857678 to your computer and use it in GitHub Desktop.
Save mattsah/1857678 to your computer and use it in GitHub Desktop.
IE Fixes
/**
* Allows for IE's setInterval and setTimeout to pass parameters
*/
(function(f){
window.setTimeout = f(window.setTimeout);
window.setInterval = f(window.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