Use less self and bind instead
Instead of
var self = this;
doSomeStuffAsync(function(result){
self.processThe(result);
});
use
doSomeStuffAsync(function(result){
this.processThe(result);
}.bind(this));
(Only if the this object of the callback is not needed.)
(from redmine: issue id 2355, created on 2016-05-10 by benjamin.fischer)