andreypopp / autobind-decorator

Decorator to automatically bind methods to class instances
MIT License
1.45k stars 66 forks source link

Why not just using `myMethod = () => {return this.a;}`? #61

Closed freereikicourse closed 6 years ago

stevemao commented 6 years ago

Its already mentioned in readme https://github.com/andreypopp/autobind-decorator#alternative

freereikicourse commented 6 years ago

() => {} is also "only bound once"

stevemao commented 6 years ago

It links to the spec so if you need to know more details just read through it.