Currently there is another approach possible if classes are used in code.
With support of class fields it's, it's possible to make it nextthe following way:
class someView {
onSomeInputKeyUp = (event) => {
console.log(this); // thisThis refers to the correct value
// ....
someInitMethod() {
//...
someInput.addEventListener('input', this.onSomeInputKeyUp)
For sure under the hood it's all the old good arrow function that bindbinds context, but in this form it looks much more clear that explicit binding.
Since it's a Stage 3 Proposal, you will need babelBabel and appropriate babelBabel plugin to process it as for now (08/2018).