- Version: 6.2.1
- Platform:
- Subsystem: various
Following on from #7295, I've spotted similar pattern in many other files:
varself=this;something(someFunc(...){
self.whatever();});In most scenarios, this pattern can be replaced with an arrow function, allowing removal of 'self' var:
something((...)=>{this.whatever();});I'd like to use this issue ticket as a hub for several commits/PRs relating to this (one changed file per PR, although there may be several commits in the PR - one for each arrow function implemented in the file).
Following on from #7295, I've spotted similar pattern in many other files:
In most scenarios, this pattern can be replaced with an arrow function, allowing removal of 'self' var:
I'd like to use this issue ticket as a hub for several commits/PRs relating to this (one changed file per PR, although there may be several commits in the PR - one for each arrow function implemented in the file).