Spot the bug in listener removal

from call, apply and bind
Node 24 beginner 4 min 1 issue to find

Find why stop does not remove the listener registered by start.

JavaScript
'use strict';

class Dashboard {
  constructor(bus) {
    this.bus = bus;
    this.total = 0;
  }

  render(value) {
    this.total += value;
  }

  start() {
    this.bus.on('data', this.render.bind(this));
  }

  stop() {
    this.bus.off('data', this.render.bind(this));
  }
}
Open in playground
Report an error