Created
March 10, 2009 09:32
-
-
Save higeorange/76828 to your computer and use it in GitHub Desktop.
This file contains 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
// http://subtech.g.hatena.ne.jp/secondlife/20090302/1235984992 | |
// IE でも同じように | |
function set_timeout() { | |
var func = Array.prototype.shift.apply(arguments); | |
var delay = Array.prototype.shift.apply(arguments); | |
return (function(args) { | |
return setTimeout(function(){ func.apply(this, args) }, delay) | |
})(arguments) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment