3 ms·
Those are not equivalent. You still have to pass on the parameters: this.setup = function () { this.on('tweet', (e, data) => this.handleStreamEvent('
by ch0wn 13y 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));
};
- ianstormtaylor 13y agoGood catch. Once they are added though, it feels a lot more readable than the "bind" alternative.