Created
February 18, 2012 05:47
-
-
Save mattsah/1857678 to your computer and use it in GitHub Desktop.
IE Fixes
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
/** | |
* 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