Hacker News new | ask | show | jobs
by ch0wn 4519 days ago
Those are not equivalent. You still have to pass on the parameters:

    this.setup = function () {
      this.on('tweet', (e, data) => this.handleStreamEvent('tweet', e, data));
      this.on('retweet', (e, data) => this.handleStreamEvent('retweet', e, data));
    };
1 comments

Good catch. Once they are added though, it feels a lot more readable than the "bind" alternative.