public

  • Download Gist
this-in-setTimeout-call.js
JavaScript
1 2 3
setTimeout(function (obj){(function(){
/*here goes the callback code*/
}).apply(obj)},time,this);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.