4 ms·
> What would a better alternative be for `var self = this` ? function foo(){}; setTimeout(foo.bind(this),1000); That being said, I'm not entirely craz
by jasonlotito 12y ago
> What would a better alternative be for `var self = this` ?
function foo(){};
setTimeout(foo.bind(this),1000);
That being said, I'm not entirely crazy about that method as well.