(no title)
ghostdiver | 12 years ago
not a big deal to put conditional breakpoint in handleStreamEvent whereever it is, but in long run it just a waste of time.
this.setup = function () {
this.on('tweet', this.handleStreamEvent.bind(this, 'tweet'));
this.on('retweet', this.handleStreamEvent.bind(this, 'retweet'));
};
This pattern will be obsolote as soon as arrow function gets implemented by all major browsers: this.setup = function () {
this.on('tweet', () => this.handleStreamEvent('tweet'));
this.on('retweet', () => this.handleStreamEvent('retweet'));
};
ch0wn|12 years ago
ianstormtaylor|12 years ago
badman_ting|12 years ago
epidemian|12 years ago
unknown|12 years ago
[deleted]