Y
Hacker News
new
|
ask
|
show
|
jobs
by
jasonlotito
4304 days 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.