<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I would imagine that this can be achieved with bind operator proposal, which already has Babel support, despite no examples showing usage inside a class.<div class=""><br class=""></div><div class="">Something like:</div><div class="">`oReq.addEventListener("load", ::this.responseHandler);`</div><div class="">seems to be the syntax that will de-sugar to</div><div class="">`oReq.addEventListener("load", this.responseHandler.bind(this));`</div><div class="">to get you the desired this binding.</div><div class=""><br class=""></div><div class="">I’m surprised this idea hasn't been mentioned yet although things have been moving slowly on that proposal and it seems to need some community support to move along.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Rob</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">References:</div><div class="">1: Bind Syntax Proposal (<a href="https://github.com/tc39/proposal-bind-operator" class="">https://github.com/tc39/proposal-bind-operator</a>)</div><div class="">2: Babel Plugin (<a href="https://babeljs.io/docs/en/next/babel-plugin-proposal-function-bind" class="">https://babeljs.io/docs/en/next/babel-plugin-proposal-function-bind</a>)</div><div class=""><br class=""></div></body></html>