Hacker News new | ask | show | jobs
by eschutte2 3082 days ago
The important thing is that the ES7 property initializer with the arrow syntax binds the function's "this" to the instance.
1 comments

I understand that, but that’s not necessarily acceptable if it makes debugging a nightmare.

Apparently there is also a bind decorator, which I think is nicer than either of the other methods, because it is explicit but also clear, and without the verbosity.